ngitflow-qa v1.0.28-snapshot.3
Node Git Flow
A command line node module to deal with git flow
Requirements
Links
Installation
$ npm install ngitflow --save-devor
$ npm install -g ngitflowUsage
init
Initialize git-flow repository structure. Create master and develop branches. You should set your develop branch as a default branch in your git hosting service provider.
$ ngitflow init -h
Usage: init [options]
Options:
-h, --help output usage information
Examples:
$ ngitflow initrelease
Create a new release branch and bump package.json version. Example 1.0.1-snapshot.0 becomes 1.0.1 in release branch. After release finish a new tag is created and merged back to develop and master. Version becomes 1.0.2-snapshot on develop but on master stays 1.0.1.
$ ngitflow release -h
Usage: release [options] <action> [level]
Options:
-o, --offline do not sync with remote
-h, --help output usage information
Examples:
$ ngitflow release start
$ ngitflow release start minor
$ ngitflow release start major
$ ngitflow release finsihfeature
Create a new feature branch and bump package.json version. Example 1.0.1-snapshot.0 becomes 1.0.1-firstfeature.0. After feature finish all changes are merged back to develop and version is changed back to snapshot.
$ ngitflow feature -h
Usage: feature [options] <action> [name]
Options:
-h, --help output usage information
Examples:
$ ngitflow feature start
$ ngitflow feature start firstfeature
$ ngitflow feature finishRecommended
You should install it as a dev dependency and then add the following to the scripts object in your package.json:
"release:start": "ngitflow release start",
"release:finish": "ngitflow release finish",
"release": "ngitflow release start && ngitflow release finish"Possible .ngitflowrc configuration
{
"versionFiles": [
{"file": "projects/core/package.json", "regex": "(\"version\"\\s*:\\s*\")[\\s\\S]*?\",", "replacement": "$1$VERSION\","}
]
}versionFiles is a list of any files that contains version string and you want to be updated when version in main package.json is changed. You simply define path to file, regex of matching string that you want to replace and replacement string that contains $VERSION key which is replaced with real version string before replacement in file is made.
License
This project is released under the MIT license, which can be found in LICENSE.
7 years ago
7 years ago
7 years ago
7 years ago