Skip to content

Commit 942d2d1

Browse files
committed
chore: enforce commit message convention
Install commitizan so commit messages can be assembled interactively and with compliance to semantic release conventions.
1 parent 2f1fc52 commit 942d2d1

File tree

2 files changed

+246
-40
lines changed

2 files changed

+246
-40
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"homepage": "https://github.com/gruhn/vue-qrcode-reader#readme",
3737
"husky": {
3838
"hooks": {
39-
"pre-commit": "lint-staged"
39+
"pre-commit": "lint-staged",
40+
"prepare-commit-msg": "exec < /dev/tty && git cz --hook"
4041
}
4142
},
4243
"lint-staged": {
@@ -53,9 +54,11 @@
5354
"babel-plugin-transform-runtime": "^6.23.0",
5455
"babel-preset-es2015": "^6.14.0",
5556
"babel-preset-stage-0": "^6.16.0",
57+
"commitizen": "^3.1.1",
5658
"cross-env": "^3.1.3",
5759
"cross-spawn": "^5.0.1",
5860
"css-loader": "^0.26.1",
61+
"cz-conventional-changelog": "^2.1.0",
5962
"eslint": "^3.12.1",
6063
"eslint-config-prettier": "^4.1.0",
6164
"eslint-config-standard": "^6.2.1",
@@ -79,5 +82,10 @@
7982
"babel-runtime": "^6.26.0",
8083
"jsqr": "^1.2.0",
8184
"webrtc-adapter": "^6.2.1"
85+
},
86+
"config": {
87+
"commitizen": {
88+
"path": "./node_modules/cz-conventional-changelog"
89+
}
8290
}
8391
}

0 commit comments

Comments
 (0)