-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathGruntfile.js
More file actions
88 lines (70 loc) · 2.17 KB
/
Gruntfile.js
File metadata and controls
88 lines (70 loc) · 2.17 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.initConfig({
clean: {
src: ['dist/*']
},
concat: {
nano: {
src: [
'src/Intro.js',
'src/Game.js',
'src/WebGL.js',
'src/Canvas.js',
'src/Loader.js',
'src/Cache.js',
'src/Texture.js',
'src/Sprite.js',
'src/Matrix.js',
'src/Geometry.js',
'src/Group.js',
'src/Layer.js',
'src/Frame.js',
'src/FrameData.js',
'src/Factory.js',
'src/Outro.js'
],
dest: 'dist/phaser-nano.js'
}
},
uglify: {
nano: {
options: {
banner: '/* Phaser-Nano v1.0.0 (C) Copyright 2015 Photon Storm Ltd. */\n'
},
src: ['dist/phaser-nano.js'],
dest: 'dist/phaser-nano.min.js'
}
},
jshint: {
src: {
src: [
'src/*.js',
],
options: { jshintrc: '.jshintrc' }
}
},
jsdoc : {
dist : {
src: [
'src/*.js',
'README.md'
],
options: {
destination: "api-docs",
template : "node_modules/grunt-jsdoc/node_modules/ink-docstrap/template",
configure : "conf.json",
private: false,
recurse: true,
lenient: false
}
}
}
});
grunt.registerTask('default', ['clean', 'concat:nano', 'uglify:nano']);
};