-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
51 lines (43 loc) · 1.71 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
js: {
options: {
sourceMap: true,
compress: {
drop_console: true
}
},
files: {
'lib/dotBox-min.js' : [
'lib/Observer-1.0.2.js',
'src/dotBox.utility.js',
'src/dotBox.utility.line.js',
'src/dotBox.utility.iterators.js',
'src/dotBox.boxState.js',
'src/dotBox.lineState.js',
'src/dotBox.gameEngine.js',
'src/dotBox.model.js',
'src/dotBox.views.constants.js',
'src/dotBox.views.viewContext.js',
'src/dotBox.views.Color.js',
'src/dotBox.views.board.js',
'src/dotBox.views.score.js',
'src/dotBox.views.gameOver.js',
'src/dotBox.ai.utility.js',
'src/dotBox.ai.AiPlayer.js',
'src/dotBox.ai.AvoidThirdSide.js',
'src/dotBox.ai.SingleBoxCloser.js',
'src/dotBox.controller.js',
'src/dotBox.game.js',
'src/dotBox.viewModel.js',
'src/dotBox.ko.js',
'src/app.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['uglify:js' ]);
};