-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgrunt.js
44 lines (40 loc) · 1023 Bytes
/
grunt.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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
lint: {
all: ['grunt.js', 'src/fish.js', 'src/menu.js', 'src/tt.js', 'src/game.js', 'src/gaim.js', 'src/util.js']
},
min: {
'min/g.min.js' : ['src/gaim.js', 'src/util.js', 'src/tt.js', 'src/fish.js', 'src/menu.js', 'src/game.js']
},
mincss: {
compress: {
files: {
'min/s.min.css' : 'src/s.css'
}
}
},
compress: {
zip: {
options: {
mode: 'zip'
},
files: {
'js13k.zip': ['min/g.min.js', 'min/s.min.css', 'min/index.html','min/*.png']
}
},
zipWithPrefix : {
options: {
mode: 'zip'
},
files: {
'js13k.all.zip': 'min/*'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-contrib-mincss');
// Default task.
grunt.registerTask('default', 'lint:all min mincss compress:zip compress:zipWithPrefix');
};