Skip to content

Commit da05d39

Browse files
committed
build(npm): use the global commitlint & husky
1 parent f0a2e2f commit da05d39

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no -- commitlint --edit
4+
npx --no -- commitlint -x $(npm root -g)/@commitlint/config-conventional --edit

package.json

-11
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,15 @@
1212
"url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues"
1313
},
1414
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme",
15-
"scripts": {
16-
"prepare": "husky install"
17-
},
1815
"devDependencies": {
19-
"@commitlint/cli": "^16.2.1",
20-
"@commitlint/config-conventional": "^16.2.1",
2116
"gulp": "^4.0.2",
2217
"gulp-concat": "^2.6.1",
2318
"gulp-insert": "^0.5.0",
2419
"gulp-rename": "^2.0.0",
2520
"gulp-uglify": "^3.0.2",
26-
"husky": "^7.0.4",
2721
"standard-version": "^9.3.2",
2822
"uglify-js": "^3.14.3"
2923
},
30-
"commitlint": {
31-
"extends": [
32-
"@commitlint/config-conventional"
33-
]
34-
},
3524
"standard-version": {
3625
"skip": {
3726
"commit": true,

0 commit comments

Comments
 (0)