build: add git commit message validation
Showing
.github/COMMIT_CONVENTION.md
0 → 100644
build/git-hooks/commit-msg
0 → 100755
build/install-hooks.sh
0 → 100644
... | ... | @@ -37,7 +37,8 @@ |
"bench:ssr": "npm run build:ssr && node benchmarks/ssr/renderToString.js && node benchmarks/ssr/renderToStream.js", | ||
"release": "bash build/release.sh", | ||
"release:weex": "bash build/release-weex.sh", | ||
"install:hooks": "ln -fs ../../build/git-hooks/pre-commit .git/hooks/pre-commit" | ||
"postinstall": "bash build/install-hooks.sh", | ||
"commit": "git-cz" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
... | ... | @@ -67,7 +68,10 @@ |
"chalk": "^1.1.3", | ||
"chromedriver": "^2.30.1", | ||
"codecov.io": "^0.1.6", | ||
"commitizen": "^2.9.6", | ||
"conventional-changelog-cli": "^1.3.1", | ||
"cross-spawn": "^5.1.0", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"de-indent": "^1.0.2", | ||
"es6-promise": "^4.1.0", | ||
"eslint": "^3.0.0", | ||
... | ... | @@ -117,5 +121,10 @@ |
"webpack": "^2.6.1", | ||
"weex-js-runtime": "^0.20.5", | ||
"weex-vdom-tester": "^0.2.0" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
} |
此差异已折叠。
想要评论请 注册 或 登录