-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
30 lines (27 loc) · 866 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*global module:false*/
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: grunt.file.readJSON('jshint.json'),
complexity: grunt.file.readJSON('complexity.json'),
/* to bump version, then run grunt (to update readme), then commit
grunt release
*/
bump: {
options: {
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: ['-a'], // '-a' for all files
createTag: true,
tagName: '%VERSION%',
tagMessage: 'Version %VERSION%',
push: true,
pushTo: 'origin'
}
}
});
var plugins = require('matchdep').filterDev('grunt-*');
plugins.forEach(grunt.loadNpmTasks);
grunt.registerTask('default', ['jshint', 'complexity']);
grunt.registerTask('release', ['bump-only:patch', 'bump-commit']);
};