Skip to content

Commit 004ab6c

Browse files
committed
build(deps): add commitlint, husky, and standard-version
1 parent 3969b28 commit 004ab6c

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!.editorconfig
55
!.nojekyll
66
!.travis.yml
7+
!.husky
78

89
# bundler cache
910
_site

.husky/commit-msg

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

package.json

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,43 @@
1212
"url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues"
1313
},
1414
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme",
15-
"dependencies": {
15+
"scripts": {
16+
"prepare": "husky install"
17+
},
18+
"devDependencies": {
19+
"@commitlint/cli": "^16.2.1",
20+
"@commitlint/config-conventional": "^16.2.1",
1621
"gulp": "^4.0.2",
1722
"gulp-concat": "^2.6.1",
1823
"gulp-insert": "^0.5.0",
1924
"gulp-rename": "^2.0.0",
2025
"gulp-uglify": "^3.0.2",
26+
"husky": "^7.0.4",
27+
"standard-version": "^9.3.2",
2128
"uglify-js": "^3.14.3"
29+
},
30+
"commitlint": {
31+
"extends": [
32+
"@commitlint/config-conventional"
33+
]
34+
},
35+
"standard-version": {
36+
"skip": {
37+
"commit": true,
38+
"tag": true
39+
},
40+
"types": [{
41+
"type": "feat",
42+
"section": "Features"
43+
},
44+
{
45+
"type": "fix",
46+
"section": "Bug Fixes"
47+
},
48+
{
49+
"type": "perf",
50+
"section": "Improvements"
51+
}
52+
]
2253
}
2354
}

0 commit comments

Comments
 (0)