1.1.1 • Published 2 years ago

tab-commit v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

tab-commit

git commit 信息提交规范脚本。

安装

npm install tab-commit

使用方式

  1. package.json中添加脚本
"scripts": {
    // ...
    "cm": "tab-commit"
},
  1. 执行提交脚本
npm run cm

文档

脚本默认 commit 信息规范:“任务号 改动类型 改动内容”,如“RWH-1234 feat 增加 xxx 功能”

自定义配置

  1. 项目根目录下创建tab-commit.json的配置文件,配置内容见配置项
  2. 修改package.json
 "cm": "tab-commit -c ./tab-commit.json"

配置项

  • prefix: 任务号前缀,默认RWH-。如果不需要任务号该项配置成空字符串,提示输入任务号时直接回车跳过即可。
  • splitChar: 分割符,默认(一个空格)。例,将该项设置为'/',那么提交信息为"RWH-1234/feat/xxxx"
  • needPush: 是否需要 push 代码,默认 true。该项设置为false后将不再 push,只有 commit。
1.1.1

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago