/
require.config.js
97 lines (91 loc) · 3.04 KB
/
require.config.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Sets the require.js configuration for your application.
require.config({
// 3rd party script alias names (Easier to type "jquery" than "libs/jquery-1.7.2.min")
baseUrl: '',
paths: {
// Core Libraries
"jquery": "app/libs/jquery",
"underscore": "app/libs/underscore",
"backbone": "app/libs/backbone",
"handlebars": "app/libs/Handlebars",
"hbs": "app/libs/hbs",
"json2": "app/libs/json2",
"i18nprecompile": "app/libs/i18nprecompile",
"leaflet": "app/libs/leaflet",
"time_domain": "app/libs/time_domain",
"fastclick": "app/libs/fastclick",
"moment": "app/libs/moment",
"backbone.queryparams": "app/libs/backbone.queryparams",
"backbone.subroute": "app/libs/backbone.subroute",
"backbone.layoutmanager": "app/libs/backbone.layoutmanager",
"localstorage": "app/libs/backbone.localStorage",
"raphael": "app/libs/raphael",
"justgage": "app/libs/justgage",
"matchMedia": "app/libs/matchMedia",
"modernizr": "app/libs/modernizr",
"foundation": "app/libs/foundation/foundation",
"foundation.tooltips": "app/libs/foundation/foundation.tooltips",
// Testing libs
"jasmine": "app/tests/libs/jasmine-1.3.1/jasmine",
"jasmine-html": "app/tests/libs/jasmine-1.3.1/jasmine-html",
"jasmine-jquery": "app/tests/libs/jasmine-jquery",
// Moxie Core modules
// "app/core/models/MoxieModel": "app/core/models/MoxieModel",
// "MoxieCollection": "app/core/collections/MoxieCollection"
},
// Sets the configuration for your third party scripts that are not AMD compatible
shim: {
"backbone": {
"deps": ["underscore", "jquery"],
"exports": "Backbone" //attaches "Backbone" to the window object
},
"underscore": {
"exports": "_"
},
"backbone.queryparams": {
"deps": ["backbone"]
},
"backbone.layoutmanager": {
"deps": ["backbone"],
"exports": "Backbone.Layout"
},
"leaflet": {
"exports": "L"
},
"time_domain": {
"exports": "TimeDomain"
},
"handlebars": {
"exports": "Handlebars"
},
"json2": {
"exports": "JSON"
},
"justgage": {
"deps": ["raphael"],
"exports": "justgage"
},
"foundation": {
"deps": ["jquery", "modernizr"]
},
"foundation.tooltips": {
"deps": ["foundation"]
},
// Jasmine Unit Testing
"jasmine": {
"exports": "jasmine"
},
"jasmine-html": {
"deps": ["jasmine"],
"exports": "jasmine"
},
"jasmine-jquery": {
"deps": ["jasmine"]
}
},
hbs: {
templateExtension: 'handlebars',
disableI18n: true,
helperPathCallback: function(name) {return 'app/templates/helpers/' + name;}
}
});