-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.js
46 lines (43 loc) · 1.59 KB
/
settings.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
(function configuration() {
if (!window.R) {
if (window.console)
console.warn('RaccoonJS is required.');
return;
}
// Global Runtime Behaviour
R.settings.devMode(false);
// File Retrieval
R.settings.delimiter('.'); // How we express the names of scripts (eg. contrib.utils.Timer uses '.' as the delimiter)
R.settings.extension('.js'); // If set to '.min.js' we can load contrib.utils.Timer as /some_path_to_js/contrib/utils/Timer.min.js
R.settings.defaultPath(''); // Default is relative. Non-relative example: '/path_to_js/ (all paths must end with a trailing slash)
// Dependency Map -- optional
R.settings.dependencyMap({
contrib : {
//path: '/example/path/to/library',
scripts: {
'contrib.events.Mouse': {
//path: '/other_directory/to/specific/file',
dependencies: ['contrib.events.EventDispatcher']
},
'contrib.apps.ScreenSize': {
dependencies: ['contrib.utils.extensions.HTMLElement', 'contrib.utils.extensions.Document']
},
'contrib.ui.ScrollPane': {
dependencies: ['contrib.events.Mouse', 'contrib.utils.extensions.Document', 'contrib.utils.extensions.DOMTweener', 'contrib.events.Touch']
},
'contrib.utils.ImageLoader': {
dependencies: ['contrib.utils.Timer']
},
'contrib.utils.Animations': {
dependencies: ['contrib.utils.Browser', 'contrib.events.EventDispatcher']
},
'contrib.utils.Timer': {
dependencies: ['contrib.events.EventDispatcher']
},
'contrib.utils.extensions.DOMTweener': {
dependencies: ['contrib.utils.Animations', 'contrib.utils.extensions.HTMLElement']
}
}
}
});
})();