gulp-ccr-bump

0.1.0 • Public • Published

gulp-ccr-bump

Bump project version programmatically or interactively. A cascading configurable gulp recipe for gulp-chef.

Install

$ npm install --save-dev gulp-chef gulp-ccr-bump

Recipe

Bump Version

Ingredients

API

config.interactive

Enable interactive operation. Once enabled, values in "version" and "type" are ignored.

config.version

Specific version to bump to. Once specified, "type" value is ignored.

config.type

Method of updating.

Valid values are: "prerelease", "patch", "minor", and "major".

config.preid

Prerelease id.

config.field

Field to update. Defaults to "version".

Usage

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);

/gulp-ccr-bump/

    Package Sidebar

    Install

    npm i gulp-ccr-bump

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • amobiz