Browse Source

build: 工程化

master
wally 4 years ago
parent
commit
a3522df298
  1. 2
      .husky/commit-msg
  2. 2
      package.json

2
.husky/commit-msg

@ -2,3 +2,5 @@
. "$(dirname "$0")/_/husky.sh"
npx husky add .husky/commit-msg "npx --no-install commitlint --edit $1"
npx --no-install commitlint --edit .git/COMMIT_EDITMSG
npx --no-install commitlint --edit .git/COMMIT_EDITMSG

2
package.json

@ -5,7 +5,7 @@
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"commit": "cz",
"cz": "git add . && git cz",
"prettier": "npx prettier --write .",
"prepare": "husky install"
},

Loading…
Cancel
Save