This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.js
74 lines (64 loc) · 2.22 KB
/
build.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// see a complete list of options here:
// https://github.com/jrburke/r.js/blob/master/build/example.build.js
/* global requirejs */
requirejs.config({
// all modules loaded are relative to this path
// e.g. require(['grid/core']) would grab /lib/grid/core.js
baseUrl: 'src',
// specify custom module name paths
paths: {
// JavaScript folders.
templates: '../templates',
// Libraries
ash: '../lib/ash/ash',
stats: '../components/stats.js/src/Stats',
jquery: '../lib/utils/loader.jquery',
underscore: '../components/underscore/underscore',
backbone: '../components/backbone/backbone',
fillsnfixes: '../lib/utils/fillsnfixes',
createjs: '../lib/utils/loader.createjs',
three: '../components/threejs/build/three',
// plugins
text: '../components/requirejs-text/text',
carousel: '../lib/utils/bootstrap-carousel'
},
// Sets the configuration for your third party scripts that are not AMD compatible
shim: {
stats: {
exports: 'Stats'
},
jquery: {
exports: '$'
},
underscore: {
exports: '_'
},
backbone: {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
createjs: {
exports: 'createjs'
},
three: {
exports: 'THREE'
},
carousel: {
deps: ['jquery'],
exports: 'plugins'
}
},
// target amd loader shim as the main module, path is relative to baseUrl.
name: '../components/almond/almond',
// DON'T touch this since it will altered by grunt. See Gruntfile.js
optimize: 'none',
// files to include along with almond. only lib/skeleton.js is defined, as
// it pulls in the rest of the dependencies automatically.
include: [ 'MainApp' ],
// Initialize the application with the main application file.
// grunt will empty this during build/optimization. See Gruntfile.js
deps: ['MainApp'],
// build file destination, relative to the build file itself
// DON'T touch this since it will altered by grunt. See Gruntfile.js
out: '../build/ashteroids.js'
});