cz-chinese-emoji
v0.0.6
Published
中文版本的 git-cz emoji 提示
Downloads
2
Readme
cz-chinese-emoji
中文版本的 git 提交 emoji 提示
安装
npm i cz-chinese-emoji @commitlint/cli @commitlint/config-conventional --save-dev
添加字段 package.json
:
"config": {
"commitizen": {
"path": "cz-chinese-emoji"
},
},
"script":{
"commit": "git add .&&git-cz"
}
添加文件 commitlint.config.js
:
const types = ['fix', 'refactor', 'feature', 'prune', 'ui', 'docs', 'init', 'release', 'config', 'merge', 'test']
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', types],
},
}
Usage
$ npm run commit