-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathGruntfile.js
56 lines (45 loc) · 1.26 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
game: {
src: [
"scripts/rAFPolyfill.js"
, "scripts/gameTime.js"
, "scripts/camera.js"
, "scripts/particles.js"
, "scripts/classes/class.js"
, "scripts/classes/static.js"
, "scripts/classes/imageMapper.js"
, "scripts/classes/imageCreator.js"
, "scripts/classes/drawableElement.js"
, "scripts/classes/shoot.js"
, "scripts/classes/ship.js"
, "scripts/classes/invasion.js"
, "scripts/classes/alien.js"
, "scripts/classes/brick.js"
, "scripts/classes/shieldBrick.js"
, "scripts/classes/shield.js"
, "scripts/classes/invaders.js"
, "scripts/classes/input.js"
],
dest: 'game.js'
}
},
uglify: {
game: {
options: {
stripBanners: {
line: true
},
},
files: {
'game.min.js': [ 'game.js' ]
}
}
},
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask("default", [ "concat", "uglify" ]);
};