From 449ccfe1fc485b3e8a3f6942a9d6b44aa2fc1632 Mon Sep 17 00:00:00 2001 From: Vadim Makeev Date: Fri, 21 Mar 2014 12:49:07 +0400 Subject: [PATCH] Gruntfile for bumping versions or anything else in the future --- .npmignore | 3 ++- Gruntfile.js | 17 +++++++++++++++++ bower.json | 1 + package.json | 3 ++- 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 Gruntfile.js diff --git a/.npmignore b/.npmignore index 7f87621..b28af5e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,5 @@ .editorconfig .gitignore Contributing.md -bower.json \ No newline at end of file +bower.json +Gruntfile.js \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..33d1499 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,17 @@ +module.exports = function(grunt) { + + require('load-grunt-tasks')(grunt); + + grunt.initConfig({ + bump: { + options: { + files: ['package.json', 'bower.json'], + commitFiles: ['package.json', 'bower.json'], + pushTo: 'origin' + } + } + }); + + grunt.registerTask('default', ['bump']); + +}; \ No newline at end of file diff --git a/bower.json b/bower.json index 60b32d4..56835bb 100644 --- a/bower.json +++ b/bower.json @@ -8,6 +8,7 @@ ".gitignore", ".npmignore", "Contributing.md", + "Gruntfile.js", "node_modules", "package.json" ], diff --git a/package.json b/package.json index 1c14cb1..d8a1700 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ }, "devDependencies": { "grunt": "^0.4.4", - "grunt-bump": "0.0.13" + "grunt-bump": "0.0.13", + "load-grunt-tasks": "^0.4.0" } }