-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathGruntfile.js
executable file
·57 lines (51 loc) · 1.53 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
50
51
52
53
54
55
56
57
module.exports = function(grunt) {
var title = grunt.option('title');
if (title)
title = title.replace(/ /gi, '+') || '';
var id = grunt.option('id');
grunt.initConfig({
exec: {
all: {
command : 'node ./tools/build.js all true'
},
"fullseries": {
command : 'node ./tools/build.js series true'
},
"fullproposals": {
command : 'node ./tools/build.js proposals true'
},
series: {
command : 'node ./tools/build.js series false'
},
"proposals": {
command : 'node ./tools/build.js proposals false'
},
"justdata": {
command : 'node ./tools/build.js all false'
},
"update" : {
command : 'node ./tools/update.js ' + title
},
"season" : {
command : 'node ./tools/season-inc.js ' + title
},
"add" : {
command : 'node ./tools/add.js ' + id
},
"prop" : {
command : 'node ./tools/prop.js ' + id
}
}
});
grunt.loadNpmTasks('grunt-exec');
grunt.registerTask('default', ['exec:series']);
grunt.registerTask('all', ['exec:all']);
grunt.registerTask('full-series', ['exec:fullseries']);
grunt.registerTask('full-proposals', ['exec:fullproposals']);
grunt.registerTask('proposals', ['exec:proposals']);
grunt.registerTask('data', ['exec:justdata']);
grunt.registerTask('update', ['exec:update']);
grunt.registerTask('season', ['exec:season']);
grunt.registerTask('add', ['exec:add']);
grunt.registerTask('proposal', ['exec:prop']);
}