File tree 4 files changed +335
-37
lines changed
4 files changed +335
-37
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "hooks": {
3
+ "pre-commit": "yarn validate",
4
+ "commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS"
5
+ }
6
+ }
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ extends : [
3
+ '@commitlint/config-conventional'
4
+ ]
5
+ }
Original file line number Diff line number Diff line change 70
70
"lint" : " (yarn standard) | snazzy" ,
71
71
"lint:fix" : " (yarn standard --fix) | snazzy" ,
72
72
"validate" : " yarn lint:fix && yarn coverage" ,
73
- "precommit" : " yarn validate" ,
74
73
"document" : " node src/CLI/hubi s -t site -o docs && mv docs/index.hubi.html docs/index.html" ,
75
74
"document:watch" : " npm-watch document" ,
76
75
"coveralls" : " cat ./nyc_output/lcov.info | coveralls" ,
77
76
"dogfood" : " node src/CLI/hubi s -st joi" ,
78
77
"dogfood:watch" : " npm-watch dogfood" ,
79
- "build" : " yarn dogfood & yarn document"
78
+ "build" : " yarn dogfood & yarn document" ,
79
+ "commit" : " npx git-cz"
80
80
},
81
81
"dependencies" : {
82
82
"commander" : " ^2.15.1" ,
88
88
"write" : " ^1.0.3"
89
89
},
90
90
"devDependencies" : {
91
+ "@commitlint/config-conventional" : " ^7.5.0" ,
91
92
"@semantic-release/git" : " ^7.0.6" ,
92
93
"@semantic-release/npm" : " ^5.1.2" ,
94
+ "commitizen" : " ^3.0.7" ,
93
95
"coveralls" : " ^3.0.0" ,
94
96
"cucumber" : " ^4.0.0" ,
97
+ "cz-conventional-changelog" : " 2.1.0" ,
95
98
"faker" : " ^4.1.0" ,
96
- "husky" : " ^0.14.3 " ,
99
+ "husky" : " ^1.3.1 " ,
97
100
"mocha" : " ^5.0.5" ,
98
101
"mocha-lcov-reporter" : " ^1.3.0" ,
99
102
"npm-watch" : " ^0.3.0" ,
132
135
"engines" : {
133
136
"node" : " >=8.9.4" ,
134
137
"npm" : " >=5.6.0" ,
135
- "yarn" : " 1.3.2 "
138
+ "yarn" : " 1.13.0 "
136
139
},
137
140
"standard" : {
138
141
"env" : [
153
156
" developer-tools" ,
154
157
" domain-driven-design" ,
155
158
" command-line"
156
- ]
159
+ ],
160
+ "config" : {
161
+ "commitizen" : {
162
+ "path" : " ./node_modules/cz-conventional-changelog"
163
+ }
164
+ }
157
165
}
You can’t perform that action at this time.
0 commit comments