Bump minor, major or milestone nothing else.

Usage no npm install needed!

<script type="module">
  import gruntMinorMajorMilestone from '';



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:


The "minor-major-milestone" task


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

  'minor-major-milestone': {
    options: {
        elem: 'milestone'



Type: String Default value: 'minor'

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


Type: String Default value: 'package.json'

The path of a json file with a version attribute.


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:

run explain example
grunt minor Increases the minor version by 1 13.13.13 -> 13.13.14
grunt major Increases the major version and sets the minor value to 0 13.13.14 -> 13.14.0
grunt milestone Increases the milestone version and sets the major and minor value to 0 13.14.0 -> 14.0.0
grunt reset Resets the version to 0.0.1 7.14.0 -> 0.0.1


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