Skip to content

Commit

Permalink
use grunt-bump to bump version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjwarren committed Feb 4, 2015
1 parent ac5aa5e commit 37679d4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -11,7 +11,7 @@ script:
after_success:
- ./node_modules/coveralls/bin/coveralls.js < coverage/lcov.info
before_deploy:
- grunt build
- grunt release
deploy:
provider: releases
api-key: "3c2ca04e36120694a707ef9b99fd07f94bce1f1c"
Expand Down
18 changes: 17 additions & 1 deletion Gruntfile.js
Expand Up @@ -267,8 +267,18 @@ module.exports = function (grunt) {
outdir: "docs/"
}
}
}
},

bump: {
options: {
files: ["package.json", "bower.json"],
commit: true,
commitMessage: "Release v%VERSION%",
commitFiles: ["package.json", "bower.json"],
createTag: false,
push: false
}
}

});

Expand All @@ -285,6 +295,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-protractor-runner");
grunt.loadNpmTasks("grunt-protractor-webdriver");
grunt.loadNpmTasks("grunt-processhtml");
grunt.loadNpmTasks("grunt-bump");

grunt.registerTask("build", [
"clean:beforeBuild",
Expand All @@ -295,6 +306,11 @@ module.exports = function (grunt) {
"yuidoc"
]);

grunt.registerTask("release", [
"build",
"bump"
]);

grunt.registerTask("server", [
"less:development",
"connect:server",
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -13,6 +13,7 @@
"connect-livereload": "~0.5.0",
"connect-modrewrite": "~0.7.9",
"coveralls": "~2.11.2",
"grunt-bump": "^0.1.0",
"grunt-contrib-clean": "~0.6.0",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-connect": "~0.9.0",
Expand Down

0 comments on commit 37679d4

Please sign in to comment.