chore(grunt): add bump grunt taks

This commit is contained in:
Estevão Soares dos Santos 2015-05-27 02:21:36 +01:00
parent c31aacceec
commit 1c80fcc2cf
2 changed files with 21 additions and 1 deletions

View File

@ -59,6 +59,24 @@ module.exports = function (grunt) {
dest: 'CHANGELOG.md'
}
},
bump: {
options: {
files: ['package.json'],
updateConfigs: [],
commit: true,
commitMessage: 'Release version %VERSION%',
commitFiles: ['package.json'],
createTag: true,
tagName: '%VERSION%',
tagMessage: 'Version %VERSION%',
push: true,
pushTo: 'upstream',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
globalReplace: false,
prereleaseName: 'alpha',
regExp: false
}
},
simplemocha: {
node: {
src: 'test/node/**/*.js',
@ -86,6 +104,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-conventional-changelog');
grunt.loadNpmTasks('grunt-bump');
grunt.registerTask('lint', ['jshint', 'jscs']);
grunt.registerTask('test', ['lint', 'concat', 'simplemocha']);
@ -94,5 +113,5 @@ module.exports = function (grunt) {
grunt.registerTask('prep-release', ['build', 'changelog']);
// Default task(s).
grunt.registerTask('default', []);
grunt.registerTask('default', ['test']);
};

View File

@ -33,6 +33,7 @@
"devDependencies": {
"chai": "^1.10.0",
"grunt": "^0.4.5",
"grunt-bump": "^0.3.1",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.6.0",