git-flow-cli

manage your git flow

Usage no npm install needed!

<script type="module">
  import gitFlowCli from 'https://cdn.skypack.dev/git-flow-cli';
</script>

README

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" ]
}