commitlint-config-befe
v2.0.3
Published
commitlint config preet for baidu BEFE.
Downloads
9
Readme
commitlint-config-befe
commitlint config preet for baidu BEFE.
安装
npm install \
@baidu/commitlint-config-befe @commitlint/cli husky \
-D --registry=http://registry.npm.baidu-int.com
使用
在 package.json
中书写:
{
"scripts": {
"commitmsg": "commitlint -e $GIT_PARAMS"
},
"commitlint": {
"extends": ["@baidu/commitlint-config-befe"]
}
}
同时推荐 npm install -g commitizen
全局注入了 git cz
,用来引导式书写规范的 commit message,十分适合于不熟悉的同学。
Related
- conventional-changelog - 根据 commit message 生成 changelog
- commitlint - Lint commit messages
- @baidu/conventional-changelog-befe - conventional-changelog 预设
License
MIT