gulp-modular-release
Modular extension to release projects using git-flow release strategy.
Works well alone or together with gulp-modular.
Installation
npm install gulp-modular-release --save-dev
Integration in gulpfile
var gulp = require('gulp');
var gulpModularRelease = require('gulp-modular-release');
var config = {
release: {
}
};
gulpModularRelease(gulp, config);
Usage
gulp release
or
gulp release -v 1.2.3
or
gulp relrease -b hotfix/foobar
or
gulp relrease -b hotfix/foobar -v 1.2.3
(If no version is specified the next version is generated using conventional-recommended-bump.)
Strategy
- checks out
develop
branch and pulls origin
for changes (pull --only-ff
) - creates branch
release/1.2.3
from develop
(just without -b
option) - sets version number to
bower.json
and package.json
- generates and writes changelog via conventional changelog to
CHANGELOG.md
- commits the previous changes
- merges
release/1.2.3
(or the specified branch) into master
and tags it with v1.2.3
- merges
master
into develop
- deletes branch
release/1.2.3
(or the specified branch) - checks out
develop
- (optionally) pushes changes to remote repository