Add grunt-bump.

This commit is contained in:
Ruben Vermeersch 2013-12-20 09:41:38 +01:00
parent 4d256d37c3
commit 51aeb26844
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,6 @@
module.exports = (grunt) -> module.exports = (grunt) ->
@loadNpmTasks('grunt-browserify') @loadNpmTasks('grunt-browserify')
@loadNpmTasks('grunt-bump')
@loadNpmTasks('grunt-contrib-clean') @loadNpmTasks('grunt-contrib-clean')
@loadNpmTasks('grunt-contrib-jshint') @loadNpmTasks('grunt-contrib-jshint')
@loadNpmTasks('grunt-contrib-uglify') @loadNpmTasks('grunt-contrib-uglify')
@ -41,6 +42,12 @@ module.exports = (grunt) ->
files: files:
'dist/pofile.min.js': 'dist/pofile.js' 'dist/pofile.min.js': 'dist/pofile.js'
bump:
options:
files: ['package.json', 'bower.json']
commitFiles: ['-a']
pushTo: 'origin'
@registerTask 'default', ['test'] @registerTask 'default', ['test']
@registerTask 'build', ['clean', 'jshint', 'browserify', 'uglify'] @registerTask 'build', ['clean', 'jshint', 'browserify', 'uglify']
@registerTask 'test', ['build', 'mochacli'] @registerTask 'test', ['build', 'mochacli']

View File

@ -37,7 +37,8 @@
"grunt-contrib-uglify": "~0.2.7", "grunt-contrib-uglify": "~0.2.7",
"browserify": "~3.11.1", "browserify": "~3.11.1",
"grunt-browserify": "~1.3.0", "grunt-browserify": "~1.3.0",
"grunt-contrib-clean": "~0.5.0" "grunt-contrib-clean": "~0.5.0",
"grunt-bump": "0.0.13"
}, },
"dependencies": { "dependencies": {
"lodash.isarray": "~2.4.1" "lodash.isarray": "~2.4.1"