-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
47 lines (43 loc) · 1.72 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
/** Gruntfile for [ludorum-towerdefense](http://github.com/LeonardoVal/ludorum-towerdefense).
*/
module.exports = function (grunt) {
var FB_APP_PATH = 'apps/towerdefense-creatartis.firebaseapp.com/';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
'firebase-app': {
files: [
{ src: 'node_modules/requirejs/require.js', nonull: true,
dest: FB_APP_PATH +'public/js/require.js' },
{ src: 'node_modules/creatartis-base/build/creatartis-base.min.js', nonull: true,
dest: FB_APP_PATH +'public/js/creatartis-base.js' },
{ src: 'node_modules/sermat/build/sermat-umd-min.js', nonull: true,
dest: FB_APP_PATH +'public/js/sermat.js' },
{ src: 'node_modules/inveniemus/build/inveniemus.min.js', nonull: true,
dest: FB_APP_PATH +'public/js/inveniemus.js' },
{ src: 'node_modules/ludorum/build/ludorum.min.js', nonull: true,
dest: FB_APP_PATH +'public/js/ludorum.js' },
{ src: 'build/ludorum-towerdefense.js', nonull: true,
dest: FB_APP_PATH +'public/js/ludorum-towerdefense.js' },
]
}
}
});
require('@creatartis/creatartis-grunt').config(grunt, {
sourceNames: ["__prologue__",
"manifest", "oop", "path", "video", "sound", "main", "logic",
"units", "shots", "towers", "towerdefense", "ai-players", "scenarios",
"__epilogue__"],
deps: [
{ id: 'creatartis-base', name: 'base' },
{ id: 'sermat', name: 'Sermat', path: 'node_modules/sermat/build/sermat-umd-min.js' },
{ id: 'inveniemus' }
],
targets: {
build_umd: { fileName: 'build/ludorum-towerdefense', wrapper: 'umd' }
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('default', ['build']);
grunt.registerTask('firebase', ['build', 'copy:firebase-app']);
};