-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
61 lines (53 loc) · 1.42 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require.config({
paths: {
jquery: 'vendor/jquery/dist/jquery',
underscore: 'vendor/underscore/underscore',
backbone: 'vendor/backbone/backbone',
jqueryui: 'vendor/jquery-ui/jquery-ui',
jqueryuitouch: 'vendor/jqueryui-touch-punch/jquery.ui.touch-punch',
jqueryserialize: 'vendor/jquery-serialize-object/jquery.serialize-object',
text: 'vendor/requirejs-text/text',
less: 'vendor/require-less/less',
lessc: 'vendor/require-less/lessc',
normalize: 'vendor/require-less/normalize',
bootstrap: 'vendor/bootstrap/dist/js/bootstrap',
videojs: 'vendor/video.js/dist/video-js/video',
viewmanager: 'scripts/vm',
collection: 'app/abstract-collection',
model: 'app/abstract-model',
view: 'app/abstract-view',
resourcesCollection: 'pods/resource/collections/all',
lessonsCollection: 'pods/lesson/collections/all',
skillsCollection: 'pods/skill/collections/all',
tracksCollection: 'pods/track/collection'
},
shim: {
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
'underscore': {
exports: '_'
},
'jqueryui': {
deps: ['jquery']
},
'jqueryuitouch': {
deps: ['jqueryui']
},
'jqueryserialize': {
deps: ['jquery']
},
'bootstrap': {
deps: ['jquery']
},
'videojs': {
deps: ['jquery']
}
},
less: {
async: true
},
waitSeconds: 0
});
require(['app/main', 'bootstrap']);