2015-03-29 03:35:10 +02:00
|
|
|
require.config({
|
|
|
|
baseUrl: "lib",
|
|
|
|
paths: {
|
|
|
|
"leaflet": "../bower_components/leaflet/dist/leaflet",
|
|
|
|
"leaflet.label": "../bower_components/Leaflet.label/dist/leaflet.label",
|
2015-04-09 19:45:00 +02:00
|
|
|
"leaflet.providers": "../bower_components/leaflet-providers/leaflet-providers",
|
2015-03-29 03:35:10 +02:00
|
|
|
"chroma-js": "../bower_components/chroma-js/chroma.min",
|
|
|
|
"moment": "../bower_components/moment/min/moment-with-locales.min",
|
|
|
|
"tablesort": "../bower_components/tablesort/tablesort.min",
|
2015-03-29 04:26:23 +02:00
|
|
|
"tablesort.numeric": "../bower_components/tablesort/src/sorts/tablesort.numeric",
|
2015-03-31 17:22:36 +02:00
|
|
|
"d3": "../bower_components/d3/d3.min",
|
2015-04-02 02:33:17 +02:00
|
|
|
"numeral": "../bower_components/numeraljs/min/numeral.min",
|
|
|
|
"numeral-intl": "../bower_components/numeraljs/min/languages.min",
|
2015-04-02 19:59:07 +02:00
|
|
|
"virtual-dom": "../bower_components/virtual-dom/dist/virtual-dom",
|
2015-04-19 12:22:09 +02:00
|
|
|
"rbush": "../bower_components/rbush/rbush",
|
2015-06-01 22:36:10 +02:00
|
|
|
"helper": "../helper",
|
|
|
|
"jshashes": "../bower_components/jshashes/hashes"
|
2015-03-29 03:35:10 +02:00
|
|
|
},
|
|
|
|
shim: {
|
|
|
|
"leaflet.label": ["leaflet"],
|
2015-04-09 19:45:00 +02:00
|
|
|
"leaflet.providers": ["leaflet"],
|
2015-03-29 03:35:10 +02:00
|
|
|
"tablesort": {
|
|
|
|
exports: "Tablesort"
|
|
|
|
},
|
2015-04-02 22:07:00 +02:00
|
|
|
"numeral-intl": {
|
|
|
|
deps: ["numeral"],
|
|
|
|
exports: "numeral"
|
|
|
|
},
|
2015-03-29 04:26:23 +02:00
|
|
|
"tablesort.numeric": ["tablesort"],
|
2015-04-02 02:33:17 +02:00
|
|
|
"helper": ["numeral-intl"]
|
2015-03-29 03:35:10 +02:00
|
|
|
}
|
|
|
|
})
|
2015-03-29 04:35:20 +02:00
|
|
|
|
|
|
|
require(["main", "helper"], function (main) {
|
2015-07-19 19:45:25 +02:00
|
|
|
getJSON("config.json").then(main)
|
2015-03-29 04:35:20 +02:00
|
|
|
})
|