Add bump task

This commit is contained in:
isqua 2015-01-03 14:23:45 +03:00
parent ead197bf78
commit ce79f820ba
2 changed files with 17 additions and 1 deletions

View File

@ -30,11 +30,26 @@ module.exports = function(grunt) {
main: {
files: vendorCopy
}
}
},
bump: {
options: {
files: [ 'package.json', 'bower.json', 'chrome_point_plus/manifest.json' ],
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: [ 'package.json', 'bower.json', 'chrome_point_plus/manifest.json' ],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: false,
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
globalReplace: true
}
},
});
// Загрузить плагины
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-bump');
// Что выполнять по команде `grunt`
grunt.registerTask('default', [ 'copy' ]);

View File

@ -15,6 +15,7 @@
"devDependencies": {
"bower": "^1.3.12",
"grunt": "^0.4.5",
"grunt-bump": "0.0.16",
"grunt-contrib-copy": "^0.7.0"
}
}