Package Exports
- cz-simple-log
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cz-simple-log) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cz-simple-log
基于cz的commitlog适配器,简洁版
参考cz-conventional-changelog的二次开发
安装:
1、 全局安装cz-cli
npm install -g commitizen
2、 安装cz-simple-log
npm install cz-simple-log
可以在项目目录,或全局安装,但目标是能引用到它。 请看第3步。
3、 在目录的package.json
文件里添加配置
"config": {
"commitizen": {
"path": "./node_modules/cz-simple-log"
}
}
使用
用git cz
命令替换git commit
命令
log类型
类型 | 含义 |
---|---|
feat | 实现了新功能 |
docs | 文档更改 |
style | 不影响代码含义的更改(空白,格式化,缺少分号等) |
refactor | 代码重构,不是fix也不是feat |
perf | 提高性能的代码更改 |
test | 添加或修改测试用例 |
build | 影响构建系统或外部依赖性的更改(npm、package.json、fis3、webpack) |
chore | 不涉及src或测试文件的其他更改 |
revert | 恢复先前的提交 |