A wrapper task for grunt-release
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-releaser2 --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-releaser2');
Dynamically configures grunt-release
allowing the creation of individual release targets. Targets allows to split the release process of NPM modules in steps steps, for instance:
- Version bumping
- Releasing (committing, tagging, pushing and publishing to NPM)
In this case, a two steps process allows to run additonal tasks after bumping the project's versions, in case any task depends on the bumped version.
grunt.initConfig({
releaser: {
options: {
// Any valid grunt-release option is allowed here
reloadpkg: true // default: false
},
your_target: {
// Any valid grunt-release option is allowed here
reloadpkg: true // default: false
},
},
})
See grunt-release.
Type: Boolean
Default value: false
If true
reloads package.json
after running releaser:[target]P[type]
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.
(Nothing yet)