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
|
requirejs.config({
baseUrl: "lib",
shim: {
easel: {
exports: 'createjs'
},
tween: {
deps: ['easel'],
exports: 'Tween'
},
preload: {
exports: 'Preload'
},
jquery: {
exports: 'jquery'
},
prototype : {
exports: 'prototype'
},
// Custom libraries
graphical_board : {
deps: ['easel', 'prototype'],
exports: 'GraphicalBoard'
},
textzone : {
deps: ['easel', 'prototype'],
exports: 'TextZone'
}
},
paths: {
activity: "../js",
easel: 'easeljs',
tween: 'tweenjs',
preload: 'preloadjs',
jquery: 'jquery',
prototype: 'prototype',
graphical_board: 'customs/graphical_board',
textzone: 'customs/textzone'
}
});
requirejs(["activity/activity"]);
|