Bump project version programmatically or interactively. A cascading configurable gulp recipe for gulp-chef.
$ npm install --save-dev gulp-chef gulp-ccr-bump
Bump Version
Enable interactive operation. Once enabled, values in "version
" and "type
" are ignored.
Specific version to bump to. Once specified, "type
" value is ignored.
Method of updating.
Valid values are: "prerelease
", "patch
", "minor
", and "major
".
Prerelease id.
Field to update. Defaults to "version
".
var gulp = require('gulp');
var chef = require('gulp-chef');
var meals = chef({
bumpi: {
description: 'bump version interactively',
recipe: 'bump',
interactive: true
},
bumpm: {
description: 'bump major version',
recipe: 'bump',
type: 'major'
},
bumpn: {
description: 'bump minor version',
recipe: 'bump',
type: 'minor'
},
bump: {
description: 'bump patch version'
}
});
gulp.registry(meals);