Skip to content

Commit e92b6c5

Browse files
chore: husky
1 parent a5123fb commit e92b6c5

File tree

4 files changed

+1174
-39
lines changed

4 files changed

+1174
-39
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"devDependencies": {
3131
"@ant-design/icons": "^4.7.0",
3232
"@babel/core": "^7.15.8",
33+
"@commitlint/cli": "^13.2.1",
34+
"@commitlint/config-conventional": "^13.2.0",
3335
"@rollup/plugin-babel": "^5.3.0",
3436
"@rollup/plugin-commonjs": "^21.0.0",
3537
"@rollup/plugin-node-resolve": "^13.0.5",
@@ -49,6 +51,7 @@
4951
"eslint-plugin-react-hooks": "^4.2.0",
5052
"fbemitter": "^3.0.0",
5153
"gh-pages": "^3.2.3",
54+
"husky": "^7.0.2",
5255
"less": "^4.1.2",
5356
"numeral": "^2.0.6",
5457
"postcss": "^8.3.9",
@@ -60,7 +63,8 @@
6063
"rollup-plugin-filesize": "^9.1.1",
6164
"rollup-plugin-peer-deps-external": "^2.2.4",
6265
"rollup-plugin-postcss": "^4.0.1",
63-
"rollup-plugin-uglify": "^6.0.4"
66+
"rollup-plugin-uglify": "^6.0.4",
67+
"standard-version": "^9.3.1"
6468
},
6569
"peerDependencies": {
6670
"@ant-design/icons": "^4.7.0",

0 commit comments

Comments
 (0)