-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
43 lines (41 loc) · 1.32 KB
/
app.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
var cdnjsBase = 'https://cdnjs.cloudflare.com/ajax/libs';
var cdnjs = (lib, ver, file) => `${cdnjsBase}/${lib}/${ver}/${file}`;
requirejs.config({
paths: {
'knockout-projections': 'https://rawgithub.com/mariusGundersen/knockout-projections/amd/dist/knockout-projections-1.0.0.min',
'knockout.mapping': cdnjs('knockout.mapping', '2.4.1', 'knockout.mapping'),
Bottleneck: cdnjs('bottleneck', '1.16.0', 'bottleneck'),
fabric: cdnjs('fabric.js', '1.4.0', 'fabric.min'),
jStorage: cdnjs('jStorage', '0.4.4', 'jstorage.min'),
jquery: cdnjs('jquery', '1.10.2', 'jquery.min'),
knockout: cdnjs('knockout', '3.0.0', 'knockout-min'),
lodash: cdnjs('lodash.js', '2.4.1', 'lodash.min'),
postal: cdnjs('postal.js', '0.8.5', 'postal.min'),
},
map: {
'*': {
knockout: 'knockout-shim',
},
'knockout-shim': {
knockout: 'knockout',
},
'knockout.mapping': {
knockout: 'knockout',
},
'knockout-projections': {
knockout: 'knockout',
},
},
shim: {
Bottleneck: {
exports: 'Bottleneck',
},
fabric: {
exports: 'fabric',
},
jStorage: {
exports: '$.jStorage',
}
}
});
require(['app/main.js']);