-
Notifications
You must be signed in to change notification settings - Fork 8
/
Gruntfile.js
49 lines (41 loc) · 1.27 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
/**
* https://github.com/gyandeeps/gruntify-eslint
*/
eslint: {
options: {
configFile: '.eslintrc'
},
src: ['Gruntfile.js', 'payload.js']
},
/**
* https://github.com/vojtajina/grunt-bump
*/
bump: {
options: {
files: ['package.json'],
updateConfigs: ['pkg'],
commit: true,
commitMessage: 'Release version %VERSION%',
commitFiles: ['.'],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Release version %VERSION%',
push: true,
pushTo: 'origin',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
globalReplace: false,
prereleaseName: false,
metadata: '',
regExp: false
}
}
});
grunt.loadNpmTasks('gruntify-eslint');
grunt.loadNpmTasks('grunt-bump');
grunt.registerTask('default', ['eslint']);
grunt.registerTask('test', ['eslint']);
};