-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(grunt): Add grunt for grunt-bump. There has to be an easier way…
… than to include grunt and dependencies.
- Loading branch information
Carey Hinoki
committed
Aug 27, 2015
1 parent
acb0ab6
commit db8017d
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%' | ||
} | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters