commitizen-cz-changelog
v0.0.7
Published
采用交互式操作来输入git message信息
Downloads
31
Readme
第一种:局部使用
- 安装插件
npm install commitizen-cz-changelog -D
- 项目中使用 package.json 文件中新增配置
{
"scripts":{
"commit":"git-cz"
},
"config":{
"commitizen":{
"path":"./node_modules/commitizen-cz-changelog",
"maxHeaderWidth":72,
"defaultJiraId":"cr_id_skip",
"defaultScope":"xxx",
"defaultFilesExceedRemark":"none",
"filesExceedRemarkTypes":{
"none":{
"description":"未超出",
"title":"未超出"
},
"3rd_skip":{
"description":"第三方代码",
"title":"第三方代码"
},
"no_3rd_skip":{
"description":"非第三方代码",
"title":"非第三方代码"
}
}
}
}
}
- 使用方式
git add .
npm run commit
第一种:全局使用
- 安装插件
npm install -g commitizen commitizen-cz-changelog
- 项目中使用 创建 ~/.czrc 文件,写入以下内容
{
"path":"commitizen-cz-changelog",
"maxHeaderWidth":72,
"defaultJiraId":"cr_id_skip",
"defaultScope":"xxx",
"defaultFilesExceedRemark":"none",
"filesExceedRemarkTypes":{
"none":{
"description":"未超出",
"title":"未超出"
},
"3rd_skip":{
"description":"第三方代码",
"title":"第三方代码"
},
"no_3rd_skip":{
"description":"非第三方代码",
"title":"非第三方代码"
}
}
}
- 使用方式
git add .
git cz