Balm Git Flow
The best practices for front-end git flow
Requirements
- Node.js
- Git
Installation
npm install -g balm-git-flow
Configuration
⚠️ First, create a balm.env.js
file in your project root directory
Variable Name | Type | Description |
---|
BALM_GIT_FLOW_NAME | string | project name |
BALM_GIT_FLOW_MAIN | string | main branch |
BALM_GIT_FLOW_RELEASE | string | production release branch |
BALM_GIT_FLOW_RELEASES | array | all release branches |
BALM_GIT_FLOW_SCRIPTS | array | all build scripts corresponding to the release branches |
Usage
balm-git doctor
: check the project environmentbalm-git dev <new-branch> [<start-point>]
: create new branch for development from origin main branchbalm-git prod
: release process