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
 .idea/
 *.log
+/.husky/

+ 4 - 2
package.json

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

Різницю між файлами не показано, бо вона завелика
+ 1274 - 1253
pnpm-lock.yaml