build(deps-dev): install husky
and commitlint
locally
Signed-off-by: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
This commit is contained in:
parent
96bdd7c1dd
commit
c5d11441bc
2 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx --no -- commitlint -x $(npm root -g)/@commitlint/config-conventional --edit
|
npx --no -- commitlint --edit ${1}
|
||||||
|
|
|
@ -24,8 +24,11 @@
|
||||||
"@babel/core": "^7.23.7",
|
"@babel/core": "^7.23.7",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||||
"@babel/preset-env": "^7.23.7",
|
"@babel/preset-env": "^7.23.7",
|
||||||
|
"@commitlint/cli": "^18.4.4",
|
||||||
|
"@commitlint/config-conventional": "^18.4.4",
|
||||||
"@rollup/plugin-babel": "^6.0.4",
|
"@rollup/plugin-babel": "^6.0.4",
|
||||||
"@rollup/plugin-terser": "^0.4.4",
|
"@rollup/plugin-terser": "^0.4.4",
|
||||||
|
"husky": "^8.0.3",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"rollup": "^4.9.2",
|
"rollup": "^4.9.2",
|
||||||
"rollup-plugin-license": "^3.2.0",
|
"rollup-plugin-license": "^3.2.0",
|
||||||
|
@ -41,6 +44,9 @@
|
||||||
"not dead"
|
"not dead"
|
||||||
],
|
],
|
||||||
"commitlint": {
|
"commitlint": {
|
||||||
|
"extends": [
|
||||||
|
"@commitlint/config-conventional"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"body-max-line-length": [
|
"body-max-line-length": [
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in a new issue