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" } }