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
|
requirejs.config({
waitSeconds: 30,
urlArgs: "bust=v1",
baseUrl: 'src',
paths: {
main: 'main',
text: 'libs/text',
jquery: 'libs/jquery.min',
jqueryui: 'libs/jquery-ui-1.12.1.custom/jquery-ui.min',
lodash: 'libs/lodash.min',
stateman: 'libs/stateman',
nunjucks: 'libs/nunjucks',
moment: 'libs/moment.min',
urlparser: 'urlparser',
global: "global",
utils: "utils",
constants: "constants",
config: "config",
moduleloader: "moduleLoader",
services: "services",
templaterenderer: "templateRenderer",
router: "router"
},
shim: {
'jquery': {
exports: '$'
},
lodash: {
exports: "_"
},
"bootstrap": { "deps": ['jquery'] },
"moduleloader": { "deps": ['jquery', 'lodash', 'config', 'nunjucks'] },
"services": { deps: ['global'] },
'router': {
deps: ['jquery', 'jqueryui', 'lodash', 'stateman',
'nunjucks', 'moment', 'urlparser', 'global', 'utils', 'constants', 'config',
'global', 'services', 'templaterenderer'
]
}
}
});
require(['main']);
|