miaofuhao 3 years ago
parent
commit
284865fe13
4 changed files with 797 additions and 76 deletions
  1. 5 0
      .husky/commit-msg
  2. 3 0
      commitlint.config.js
  3. 787 76
      package-lock.json
  4. 2 0
      package.json

+ 5 - 0
.husky/commit-msg

1
+#!/usr/bin/env sh
2
+. "$(dirname -- "$0")/_/husky.sh"
3
+
4
+# 限制git commit的命令
5
+npx --no-install commitlint --edit

+ 3 - 0
commitlint.config.js

1
+module.exports = {
2
+  extends: ['@commitlint/config-conventional']
3
+}

File diff suppressed because it is too large
+ 787 - 76
package-lock.json


+ 2 - 0
package.json

14
     "vue": "^3.2.13"
14
     "vue": "^3.2.13"
15
   },
15
   },
16
   "devDependencies": {
16
   "devDependencies": {
17
+    "@commitlint/cli": "^17.0.3",
18
+    "@commitlint/config-conventional": "^17.0.3",
17
     "@typescript-eslint/eslint-plugin": "^5.4.0",
19
     "@typescript-eslint/eslint-plugin": "^5.4.0",
18
     "@typescript-eslint/parser": "^5.4.0",
20
     "@typescript-eslint/parser": "^5.4.0",
19
     "@vue/cli-plugin-babel": "~5.0.0",
21
     "@vue/cli-plugin-babel": "~5.0.0",