-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrequirejs.build.js
63 lines (59 loc) · 1.86 KB
/
requirejs.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
// The example build for reference
// https://github.com/requirejs/r.js/blob/master/build/example.build.js
({
// Creates a dist folder with optimized js
logLevel: 2, // WARN
dir: 'dist',
appDir: 'src',
baseUrl: 'js',
removeCombined: true,
generateSourceMaps: true,
preserveLicenseComments: false,
optimize: 'uglify2',
// optimize:'none', // toggle this for fast optimized debuging
skipDirOptimize: true,
// Tells Require.js to look at main.js for all shim and path configurations
mainConfigFile: ['src/js/config.js'],
fileExclusionRegExp: /(\.scss|\.md|_test\.js)$|^example/,
paths: {
// Libs
jquery: 'empty:'
},
packages:[
{
name: 'pipScorer',
location: '../../bower_components/PIPlayer/src/js/extensions/dscore',
main: 'Scorer'
}
],
modules: [
{
name: 'bootstrap',
insertRequire: ['bootstrap'],
include: ['app','pipScorer', 'pipAPI','questAPI','managerAPI', '../../bower_components/requirejs/require'],
override: {
map: {
'*': {
pipAPI: 'APIs/pipAPI',
questAPI: 'APIs/questAPI',
managerAPI: 'APIs/managerAPI'
}
}
}
},
{
name: 'pibootstrap',
insertRequire: ['pibootstrap'],
include: ['app','pipScorer', 'pipAPI','questAPI','managerAPI', '../../bower_components/requirejs/require'],
override: {
map: {
'*': {
pipAPI: 'APIs/PIpipAPI',
questAPI: 'APIs/PIquestAPI',
managerAPI: 'APIs/PImanagerAPI'
}
}
}
}
]
});