@ms918/mrm-task-branchclear
v0.5.2
Published
mrm branchclear任务
Downloads
10
Readme
@ms918/mrm-task-branchclear
mrm task,用来配置 branchclear
创建的默认.branchclear.yml
,如下
branchRegStr: ""
clearPosition: local
clearType: current
ignoreRegStr: ""
isIgnore: false
isReg: false
main: master
remoteName: origin
user:
默认
.branchclear.yml
的 user 使用user-meta
获取
用法
npm install -g @ms918/mrm-task-branchclear
mrm @ms918/mrm-task-branchclear
当执行的时候,会走下面步骤:
- 判断当前路径不存在
.branchclear.yml
,则创建默认 - 初始化 husky
- 设置
package.json
- 设置 script branchclera:'branchclear'
- 设置 husky.hooks.pre-push 为
exec < /dev/tty && branchclear
- 设置
devDependencies.branchclear-cli
为^2.0.0