Ver código fonte

Merge branch 'base'

菲鸽 1 ano atrás
pai
commit
6c38d3ac90
5 arquivos alterados com 3 adições e 33 exclusões
  1. 0 10
      .gitignore
  2. 1 0
      .vscode/settings.json
  3. 1 1
      package.json
  4. 0 21
      shell/postinstall.js
  5. 1 1
      src/style/index.scss

+ 0 - 10
.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

+ 1 - 0
.vscode/settings.json

@@ -39,6 +39,7 @@
     "climblee",
     "commitlint",
     "dcloudio",
+    "iconfont",
     "qrcode",
     "refresherrefresh",
     "scrolltolower",

+ 1 - 1
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": {

+ 0 - 21
shell/postinstall.js

@@ -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}已经成功创建,并写入{}`)
-  })
-}

+ 1 - 1
src/style/index.scss

@@ -1,4 +1,4 @@
-@import './iconfont.css';
+// @import './iconfont.css';
 
 .test {
   // 可以通过 @apply 多个样式封装整体样式