-
Notifications
You must be signed in to change notification settings - Fork 1
/
GruntFile.js
36 lines (33 loc) · 1.04 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: [
"*.js",
"*.json"
],
options: {
jshintrc: ".jshintrc"
}
},
bump: {
options: {
files: ['package.json'],
updateConfigs: [],
commit: true,
commitMessage: 'Release v%VERSION%',
commitFiles: ['package.json'],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: true,
pushTo: 'https://github.com/MoonTahoe/homework-server.git',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d'
}
}
});
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('check', ['jshint']);
grunt.registerTask('default', ['check', 'bump']);
};