forked from enketo/enketo-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
require-config.js
49 lines (45 loc) · 1.34 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
require.config( {
baseUrl: "../lib",
paths: {
"enketo-js": "../src/js",
"enketo-widget": "../src/widget",
"enketo-config": "../config.json",
"require-config": "../require-config", // required for build task
"text": "text/text",
"xpath": "xpath/build/enketo-xpathjs",
"file-manager": "../src/js/file-manager",
"jquery.xpath": "jquery-xpath/jquery.xpath",
"jquery.touchswipe": "jquery-touchswipe/jquery.touchSwipe",
"leaflet": "leaflet/leaflet",
"bootstrap-slider": "bootstrap-slider/js/bootstrap-slider",
"q": "bower-components/q/q"
},
shim: {
"xpath": {
exports: "XPathJS"
},
"widget/date/bootstrap3-datepicker/js/bootstrap-datepicker": {
deps: [ "jquery" ],
exports: "jQuery.fn.datepicker"
},
"widget/time/bootstrap3-timepicker/js/bootstrap-timepicker": {
deps: [ "jquery" ],
exports: "jQuery.fn.timepicker"
},
"Modernizr": {
exports: "Modernizr"
},
"leaflet": {
exports: "L"
}
}
} );
define('jquery', [], function() {
return jQuery;
});
define('fileSystem', [], function() {
return fileSystem;
});
define('deviceHandler', [], function() {
return cordovaDeviceHandler;
});