From ce79f820ba10e46e1d753c0b11cc3d70191e81c9 Mon Sep 17 00:00:00 2001 From: isqua Date: Sat, 3 Jan 2015 14:23:45 +0300 Subject: [PATCH] Add bump task --- Gruntfile.js | 17 ++++++++++++++++- package.json | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 4f02a0c..b653daf 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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' ]); diff --git a/package.json b/package.json index ab2250c..6323aed 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "devDependencies": { "bower": "^1.3.12", "grunt": "^0.4.5", + "grunt-bump": "0.0.16", "grunt-contrib-copy": "^0.7.0" } }