diff --git a/Gruntfile.coffee b/Gruntfile.coffee index fbda55f..1b4a972 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -1,5 +1,6 @@ module.exports = (grunt) -> @loadNpmTasks('grunt-browserify') + @loadNpmTasks('grunt-bump') @loadNpmTasks('grunt-contrib-clean') @loadNpmTasks('grunt-contrib-jshint') @loadNpmTasks('grunt-contrib-uglify') @@ -41,6 +42,12 @@ module.exports = (grunt) -> files: 'dist/pofile.min.js': 'dist/pofile.js' + bump: + options: + files: ['package.json', 'bower.json'] + commitFiles: ['-a'] + pushTo: 'origin' + @registerTask 'default', ['test'] @registerTask 'build', ['clean', 'jshint', 'browserify', 'uglify'] @registerTask 'test', ['build', 'mochacli'] diff --git a/package.json b/package.json index 50170fa..a80de6f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "http://savanne.be/" }, "contributors": [ - "Mike Holly" + "Mike Holly" ], "homepage": "http://github.com/rubenv/pofile", "repository": { @@ -37,7 +37,8 @@ "grunt-contrib-uglify": "~0.2.7", "browserify": "~3.11.1", "grunt-browserify": "~1.3.0", - "grunt-contrib-clean": "~0.5.0" + "grunt-contrib-clean": "~0.5.0", + "grunt-bump": "0.0.13" }, "dependencies": { "lodash.isarray": "~2.4.1"