diff --git a/Gruntfile.js b/Gruntfile.js index 7259ca0..458b2fa 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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']); }; diff --git a/package.json b/package.json index 59926a1..db4f938 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "devDependencies": { "chai": "^1.10.0", "grunt": "^0.4.5", + "grunt-bump": "^0.3.1", "grunt-contrib-concat": "^0.5.0", "grunt-contrib-jshint": "^0.10.0", "grunt-contrib-uglify": "^0.6.0",