Skip to content

Commit 4b5d34d

Browse files
committed
add bump task
1 parent d9b9d6a commit 4b5d34d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ module.exports = function(grunt) {
2121
}
2222
},
2323

24+
bump: {
25+
options: {
26+
filepaths: ['package.json', 'bower.json'],
27+
commit: true,
28+
tag: false
29+
}
30+
},
31+
2432
// remove previous builds
2533
clean: {
2634
dist: ['dist'],
@@ -105,4 +113,6 @@ module.exports = function(grunt) {
105113
}
106114
});
107115

116+
grunt.registerTask('update', ['build', 'doc:deploy', 'bump:patch'])
117+
108118
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"grunt": "^0.4.5",
2727
"grunt-build-control": "^0.3.0",
2828
"grunt-cli": "^0.1.13",
29+
"grunt-contrib-bump": "git://github.com/gruntjs/grunt-contrib-bump",
2930
"grunt-contrib-clean": "^0.6.0",
3031
"grunt-contrib-concat": "^0.5.1",
3132
"grunt-contrib-connect": "^0.9.0",

0 commit comments

Comments
 (0)