0.1.3 • Published 7 years ago

grunt-minor-major-milestone v0.1.3

Weekly downloads
5
License
-
Repository
github
Last release
7 years ago

grunt-minor-major-milestone

Bump minor, major or milestone nothing else.

Getting Started

This plugin requires Grunt ~0.4.2

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-minor-major-milestone --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-minor-major-milestone');

The "minor-major-milestone" task

Overview

In your project's Gruntfile, add a section named grunt-minor-major-milestone to the data object passed into grunt.initConfig().

grunt.initConfig({
  'minor-major-milestone': {
    options: {
        elem: 'milestone'
    }
  }
});

Options

options.elem

Type: String Default value: 'minor'

A string value that is used to bump the version use: 'minor' || 'major' || 'milestone' || 'reset'.

options.file

Type: String Default value: 'package.json'

The path of a json file with a version attribute.

Usage

Create a task for every version increase

'minor-major-milestone': {
  minor: {
    options: { elem: 'minor' }
  },
  major: {
    options: { elem: 'major' }
  },
  milestone: {
    options: { elem: 'milestone' }
  },
  reset: {
   options: { elem: 'reset' }
  }
}

runing the different grunt commands lead to:

runexplainexample
grunt minorIncreases the minor version by 113.13.13 -> 13.13.14
grunt majorIncreases the major version and sets the minor value to 013.13.14 -> 13.14.0
grunt milestoneIncreases the milestone version and sets the major and minor value to 013.14.0 -> 14.0.0
grunt resetResets the version to 0.0.17.14.0 -> 0.0.1

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

0.1.0 Changed dependecy to "grunt": "~1.0.1"

0.0.6 Added a reset option fixed some typos in package

0.0.2 Added a grunt ok log and updated the readme

0.0.1 pumping minor, major or milestone

0.1.3

7 years ago

0.1.1

7 years ago

0.1.0

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago