-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.build.js
63 lines (58 loc) · 1.9 KB
/
app.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
( {
appDir : "src",
baseUrl : "js",
dir : "target/build",
modules : [{
name : "fishtones/services/dry/MassBuilder",
include : ["fishtones/services/dry/MassBuilder", "fishtones/services/utils/DataCollector", 'fishtones/services/wet/ExperimentService']
}],
fileExclusionRegExp : /^\.(svn|\.DS_Store)$/i,
paths : {
jQuery : '../include/js-commons/js/lib/jquery-1.8.0',
underscore : '../include/js-commons/js/lib/underscore',
Backbone : '../include/js-commons/js/lib/backbone',
d3 : '../include/js-commons/js/lib/d3.v3',
bootstrap : '../include/js-commons/js/lib/bootstrap',
bootbox : '../include/js-commons/js/lib/bootbox',
// 'fishtones' : '../include/fishtones/js',
'fishtones' : '',
'templates' : '../templates',
'Config' : 'utils/Config',
exceptionHandler : 'fishtones/js/services/utils/ExceptionHandler'
},
uglify : {
toplevel : true,
ascii_only : true,
beautify : true,
max_line_length : 1000,
//How to pass uglifyjs defined symbols for AST symbol replacement,
//see "defines" options for ast_mangle in the uglifys docs.
defines : {
DEBUG : ['name', 'false']
},
//Custom value supported by r.js but done differently
//in uglifyjs directly:
//Skip the processor.ast_mangle() part of the uglify call (r.js 2.0.5+)
no_mangle : true
},
shim : {
'jQuery' : {
exports : '$'
},
'underscore' : {
exports : '_'
},
'Backbone' : {
deps : ['underscore', 'jQuery'],
exports : 'Backbone'
},
bootstrap : {
deps : ['jQuery'],
exports : 'bootstrap'
},
d3 : {
exports : 'd3'
}
},
optimizeCss : "standard.keepLines",
})