Grunt plugin for build releases.
This plugin requires Grunt ~0.4.5
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-build-release --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-build-release');
Task for git tagging releases. Tags are calculated on the basis of date with following format.
v<ENV>-yy.MM.dd.<build-number>
<ENV>
- defaults to RELEASE but can be provided from outside.
<build-number>
- starts with 1 and increased accordingly if there are more than one releases in the day.
build_release is not a multitask, you need to call it directly without any targets like in [Usage Examples](#Usage Examples) below
Subsequent calls will do following.
grunt build_release
Will create tag vRELEASE-15.06.09.1
grunt build_release:PROD
Will create tag vPROD-15.06.09.2
grunt build_release
Will create tag vRELEASE-15.06.09.3
grunt build_release:PRE-PROD
Will create tag vPRE-PROD-15.06.09.4
grunt build_release:RELEASE
Will create tag vRELEASE-15.06.09.5
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.