chore: add commit message validate

pull/165/head
tjz 2018-04-21 12:34:57 +08:00
parent bafe6c66ee
commit 65abaf8c11
3 changed files with 640 additions and 292 deletions

16
.vcmrc Normal file
View File

@ -0,0 +1,16 @@
{
"helpMessage": "\nPlease fix your commit message (and consider using https://www.npmjs.com/package/commitizen)\n",
"types": [
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"chore",
"revert"
],
"warnOnFail": false,
"autoFix": false
}

605
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,9 @@
"compile": "node antd-tools/cli/run.js compile",
"dist": "node antd-tools/cli/run.js dist",
"lint": "eslint -c ./.eslintrc --fix --ext .jsx ./components",
"lint:style": "stylelint \"./examples/**/*.less\" --fix --syntax less"
"lint:style": "stylelint \"./examples/**/*.less\" --fix --syntax less",
"commitmsg": "validate-commit-msg",
"cm": "git-cz"
},
"repository": {
"type": "git",
@ -83,6 +85,7 @@
"gulp-strip-code": "^0.1.4",
"highlight.js": "^9.12.0",
"html-webpack-plugin": "^2.30.1",
"husky": "^0.14.3",
"istanbul-instrumenter-loader": "^3.0.0",
"jsonp": "^0.2.1",
"karma": "^1.4.1",
@ -132,6 +135,7 @@
"add-dom-event-listener": "^1.0.2",
"array-tree-filter": "^2.1.0",
"classnames": "^2.2.5",
"commitizen": "^2.9.6",
"component-classes": "^1.2.6",
"css-animation": "^1.4.1",
"dom-align": "^1.6.7",
@ -146,6 +150,7 @@
"reqwest": "^2.0.5",
"shallow-equal": "^1.0.0",
"shallowequal": "^1.0.2",
"validate-commit-msg": "^2.14.0",
"vue": "^2.5.15",
"vue-clipboard2": "0.0.8",
"vue-types": "^1.0.2",