4
0

app.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. require.config({
  2. baseUrl: "lib",
  3. paths: {
  4. "leaflet": "../bower_components/leaflet/dist/leaflet",
  5. "leaflet.label": "../bower_components/Leaflet.label/dist/leaflet.label",
  6. "leaflet.providers": "../bower_components/leaflet-providers/leaflet-providers",
  7. "chroma-js": "../bower_components/chroma-js/chroma.min",
  8. "moment": "../bower_components/moment/min/moment-with-locales.min",
  9. "tablesort": "../bower_components/tablesort/tablesort.min",
  10. "tablesort.numeric": "../bower_components/tablesort/src/sorts/tablesort.numeric",
  11. "d3": "../bower_components/d3/d3.min",
  12. "numeral": "../bower_components/numeraljs/min/numeral.min",
  13. "numeral-intl": "../bower_components/numeraljs/min/languages.min",
  14. "virtual-dom": "../bower_components/virtual-dom/dist/virtual-dom",
  15. "helper": "../helper"
  16. },
  17. shim: {
  18. "leaflet.label": ["leaflet"],
  19. "leaflet.providers": ["leaflet"],
  20. "tablesort": {
  21. exports: "Tablesort"
  22. },
  23. "numeral-intl": {
  24. deps: ["numeral"],
  25. exports: "numeral"
  26. },
  27. "tablesort.numeric": ["tablesort"],
  28. "helper": ["numeral-intl"]
  29. }
  30. })
  31. require(["main", "helper"], function (main) {
  32. main()
  33. })