luohailiang 2 年之前
父节点
当前提交
6b2694eba6
共有 3 个文件被更改,包括 1279 次插入1255 次删除
  1. 1 0
      .gitignore
  2. 4 2
      package.json
  3. 1274 1253
      pnpm-lock.yaml

+ 1 - 0
.gitignore

@@ -7,3 +7,4 @@ dist-ssr
 node_modules
 node_modules
 .idea/
 .idea/
 *.log
 *.log
+/.husky/

+ 4 - 2
package.json

@@ -9,7 +9,8 @@
     "preview": "vite preview",
     "preview": "vite preview",
     "test": "vitest",
     "test": "vitest",
     "up": "taze major -I",
     "up": "taze major -I",
-    "postinstall": "npx simple-git-hooks"
+    "postinstall": "npx simple-git-hooks",
+    "prepare": "husky install"
   },
   },
   "dependencies": {
   "dependencies": {
     "@vueuse/core": "^9.13.0",
     "@vueuse/core": "^9.13.0",
@@ -39,7 +40,8 @@
     "vite": "^4.2.1",
     "vite": "^4.2.1",
     "vite-plugin-pages": "^0.29.0",
     "vite-plugin-pages": "^0.29.0",
     "vitest": "^0.29.8",
     "vitest": "^0.29.8",
-    "vue-tsc": "^1.2.0"
+    "vue-tsc": "^1.2.0",
+    "husky": "^8.0.0"
   },
   },
   "simple-git-hooks": {
   "simple-git-hooks": {
     "pre-commit": "pnpm lint-staged"
     "pre-commit": "pnpm lint-staged"

文件差异内容过多而无法显示
+ 1274 - 1253
pnpm-lock.yaml