A command line inspired from the Git Flow process and adapted to use rebase command exlusively. It always keep your branches up to date.
- Define a production and development branches,
- See all branches status,
- Rebase and run tasks (Install and test) before pushing a branch,
- Always create a branch from production,
npm install -g gflow
Usage: gflow [options] [command]Options:-V, --version output the version number-h, --help output usage informationCommands:branches List all branches statusfinish Merge the current branch on the referenced branch and delete itmerge Merge the current branch on the referenced branch without deleting branchrelease Create the release tag on the production branch. Synchronize the dev branch and production branch
You can initialize a new GFlow project with this command:
This command will configure the production and development branches.
Gflow init command generate a
.glfowrc config file with some options look like:
||Name of the production branch or the branch use as reference to rebase a feature branch.|
||Name of the development branch (or the release candidate branch).|
||Char separator of the a branch between branchName and task type (feat, fix, chore, etc...). Example: if char = "/"
||Alias name of the remote repository (origin).|
||Disable rebasing for the given branch list when the
||Perform synchronization between
||Run command after the
||Disable unit test step.|
||Configure the branch types for the command
Use travis and semantic release
Gflow is compliante with semantic-release and provide plugin for this.
To begin generate your semantic-release configuration with semantic-release-cli
release.config.js and add these lines: