|
@@ -59,6 +59,24 @@ module.exports = function (grunt) {
|
|
|
dest: 'CHANGELOG.md'
|
|
|
}
|
|
|
},
|
|
|
+ bump: {
|
|
|
+ options: {
|
|
|
+ files: ['package.json'],
|
|
|
+ updateConfigs: [],
|
|
|
+ commit: true,
|
|
|
+ commitMessage: 'Release version %VERSION%',
|
|
|
+ commitFiles: ['package.json'],
|
|
|
+ createTag: true,
|
|
|
+ tagName: '%VERSION%',
|
|
|
+ tagMessage: 'Version %VERSION%',
|
|
|
+ push: true,
|
|
|
+ pushTo: 'upstream',
|
|
|
+ gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
|
|
|
+ globalReplace: false,
|
|
|
+ prereleaseName: 'alpha',
|
|
|
+ regExp: false
|
|
|
+ }
|
|
|
+ },
|
|
|
simplemocha: {
|
|
|
node: {
|
|
|
src: 'test/node/**/*.js',
|
|
@@ -86,6 +104,7 @@ module.exports = function (grunt) {
|
|
|
grunt.loadNpmTasks('grunt-simple-mocha');
|
|
|
grunt.loadNpmTasks('grunt-jscs');
|
|
|
grunt.loadNpmTasks('grunt-conventional-changelog');
|
|
|
+ grunt.loadNpmTasks('grunt-bump');
|
|
|
|
|
|
grunt.registerTask('lint', ['jshint', 'jscs']);
|
|
|
grunt.registerTask('test', ['lint', 'concat', 'simplemocha']);
|
|
@@ -94,5 +113,5 @@ module.exports = function (grunt) {
|
|
|
grunt.registerTask('prep-release', ['build', 'changelog']);
|
|
|
|
|
|
// Default task(s).
|
|
|
- grunt.registerTask('default', []);
|
|
|
+ grunt.registerTask('default', ['test']);
|
|
|
};
|