Skip to content

Commit

Permalink
feat(grunt): Change grunt-bump for grunt-push-release
Browse files Browse the repository at this point in the history
  • Loading branch information
oswaldoacauan committed Nov 12, 2013
1 parent 358af5f commit 410891e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions Gruntfile.js
Expand Up @@ -71,10 +71,7 @@ module.exports = function(grunt) {
files: [{
dot: true,
src: [
'<%= dir.css %>/**/*',
'<%= dir.js %>/**/*',
'<%= dir.images %>/**/*',
'<%= dir.fonts %>/**/*',
'<%= dir.assets %>/**/*',,
'partials/**/*',
'*.hbs'
]
Expand Down Expand Up @@ -337,10 +334,12 @@ module.exports = function(grunt) {
/**
* Bump version on package.json and bower.json
*/
bump: {
push: {
options: {
files: ['package.json', 'bower.json'],
updateConfigs: ['pkg'],
add: true,
addFiles: ['.'],
commitFiles: ['-a'],
pushTo: 'origin'
}
Expand Down Expand Up @@ -408,15 +407,15 @@ module.exports = function(grunt) {
'release',
'Build, move builded files to root, bump and update changelog',
function(versionType) {
grunt.task.run('bump-only:' + (versionType || ''));
grunt.task.run('push-only:' + (versionType || ''));
grunt.task.run([
'build',
'clean:release',
'copy:release',
'clean:build',
'changelog'
]);
grunt.task.run('bump-commit');
grunt.task.run('push-commit');
}
);

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -42,8 +42,8 @@
"grunt-svgmin": "~0.2.0",
"grunt-usemin": "~2.0.0",
"grunt-concurrent": "~0.4.1",
"grunt-conventional-changelog": "~1.0.0",
"grunt-push-release": "~0.1.1"
"grunt-push-release": "~0.1.1",
"grunt-conventional-changelog": "~1.0.0"
},
"engines": {
"node": ">=0.10.0"
Expand Down

0 comments on commit 410891e

Please sign in to comment.