diff --git a/.gitignore b/.gitignore index be87fea..3197009 100644 --- a/.gitignore +++ b/.gitignore @@ -23,16 +23,6 @@ dist .stylelintcache -# unplugin-auto-import 生成的类型文件,因为变化较小,还是加入版本管理吧 -# auto-import.d.ts - -# vite-plugin-uni-pages 生成的类型文件,每次切换分支都一堆不同的,所以直接 .gitignore -# uni-pages.d.ts - -# 插件生成的文件 -# src/pages.json -# src/manifest.json - # lock 文件还是不要了,我主要的版本写死就好了 # pnpm-lock.yaml # package-lock.json diff --git a/.vscode/settings.json b/.vscode/settings.json index 88eb9d1..aa5e6f4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -39,6 +39,7 @@ "climblee", "commitlint", "dcloudio", + "iconfont", "qrcode", "refresherrefresh", "scrolltolower", diff --git a/package.json b/package.json index 277a64d..8b6c652 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "build:quickapp-webview": "uni build -p quickapp-webview", "build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei", "build:quickapp-webview-union": "uni build -p quickapp-webview-union", - "prepare": "node ./shell/postinstall.js & git init && husky install ", + "prepare": "git init && husky install ", "type-check": "vue-tsc --noEmit" }, "lint-staged": { diff --git a/shell/postinstall.js b/shell/postinstall.js deleted file mode 100644 index 246ef49..0000000 --- a/shell/postinstall.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 本文件会在依赖包安装时执行,用以生成 `src/manifest.json` - * 如果不存在 `src/manifest.json` 会运行报错,提示找不到 `src/manifest.json` - * 如果中途自己删除了 'src/manifest.json' 文件,记得手动执行本文件,可以右键 `Run Code` 快速执行 - * - * 本文件是为了兼容 window 系统才生成的 - */ - -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs') - -const filePath = './src/manifest.json' - -if (fs.existsSync(filePath)) { - // console.log(`${filePath}存在`) -} else { - // console.log(`${filePath}不存在,需要创建`) - fs.writeFile(filePath, '{}\n', {}, () => { - // console.log(`${filePath}已经成功创建,并写入{}`) - }) -} diff --git a/src/style/index.scss b/src/style/index.scss index 86184d9..4241677 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -1,4 +1,4 @@ -@import './iconfont.css'; +// @import './iconfont.css'; .test { // 可以通过 @apply 多个样式封装整体样式