1 Star 0 Fork 0

evan / conventional-changelog-chestnut

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
wobuhui 提交于 2021-01-30 15:05 . docs(readme): update

conventional-changelog-chestnut

介绍

一款conventional-changelog日志模板

参考于conventional-changelog-angular

安装准备

先确保安装依赖包

安装

npm install conventional-changelog-chestnut --save-dev

使用

{
	"scripts": {
		"changelog": "conventional-changelog -p chestnut -i CHANGELOG.md -s -r 0"
	}
}

配置

需要在项目根目录下创建.chestnutlogrc文件,这里提供了一份参考文件

types

type: Array

默认的参数类型是根据commitizen提供,根据git commit message的type输出日志

数组元素设置必须包含typealias字段

数组必须至少有一项,否则会使用默认配置

{
  "types": [
    {
      "type": "feat",
      "alias": "Features"
    }
  ]
}
authorName

type: Boolean, default: false

是否显示提交人

{
	"authorName": false
}
authorEmail

type: Boolean, default: false

是否显示提交人邮箱

{
	"authorEmail": false
}

License

MIT © bnuephjx

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/bnuephjx/conventional-changelog-chestnut.git
git@gitee.com:bnuephjx/conventional-changelog-chestnut.git
bnuephjx
conventional-changelog-chestnut
conventional-changelog-chestnut
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891