0.1.0 • Published 6 years ago

git-flow-cli v0.1.0

Weekly downloads
3
License
-
Repository
-
Last release
6 years ago

Git Flow Tools

  1. provide gitflow cli
  2. auto write git hooks

Usage

npm install git-flow-cli --save-dev

Default Hooks

pre-commit

  • branchs which are not allowed to commit (master|staging|qa|release|develop)
  • find your scripts which contains eslint/tslint and run

commit-msg

pre-push

  • branchs which are not allowed to push (master|staging|qa|release|develop)

Custom Config

put config in {your_project}/gitflow.js(on) like

{
	"${hook_name}": [ "${command}" ] 
}

eg:

{
	"pre-commit": [ "npm run lint" ]
}
0.1.0

6 years ago