Skip to content

Commit

Permalink
chore(grunt): Add grunt for grunt-bump. There has to be an easier way…
Browse files Browse the repository at this point in the history
… than to include grunt and dependencies.
  • Loading branch information
Carey Hinoki committed Aug 27, 2015
1 parent acb0ab6 commit db8017d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = function (grunt) {
// load grunt tasks automatically
require('load-grunt-tasks')(grunt);

// time how long tasks take. can help when optimizing build times
require('time-grunt')(grunt);

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

banner: [
'/**',
' * <%= _.titleize(pkg.name) %> v<%= pkg.version %>',
' *',
' * @date: <%= grunt.template.today("yyyy-mm-dd") %>',
' */\n\n'
].join('\n')
});

grunt.loadTasks('grunt');
};
18 changes: 18 additions & 0 deletions grunt/bump.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = function (grunt) {
grunt.config('bump', {
options: {
commitFiles: [
'package.json'
],

commitMessage: 'Release v%VERSION%',

files: [
'package.json'
],

pushTo: 'origin',
tagName: 'v%VERSION%'
}
});
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@
"babel-core": "^5.8.22",
"babel-loader": "^5.3.2",
"clean-webpack-plugin": "^0.1.3",
"grunt": "^0.4.5",
"grunt-bump": "^0.3.2",
"jasmine": "^2.3.2",
"jasmine-core": "^2.3.4",
"karma": "^0.13.9",
"karma-jasmine": "^0.3.6",
"karma-phantomjs-launcher": "^0.2.1",
"karma-webpack": "^1.7.0",
"load-grunt-tasks": "^3.2.0",
"phantomjs": "^1.9.18",
"time-grunt": "^1.2.1",
"video.js": "^4.12.14",
"webpack": "^1.12.0",
"webpack-config": "^0.8.0",
Expand Down

0 comments on commit db8017d

Please sign in to comment.