app.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. "rbush": "../bower_components/rbush/rbush",
  16. "helper": "../helper"
  17. },
  18. shim: {
  19. "leaflet.label": ["leaflet"],
  20. "leaflet.providers": ["leaflet"],
  21. "tablesort": {
  22. exports: "Tablesort"
  23. },
  24. "numeral-intl": {
  25. deps: ["numeral"],
  26. exports: "numeral"
  27. },
  28. "tablesort.numeric": ["tablesort"],
  29. "helper": ["numeral-intl"]
  30. }
  31. })
  32. require(["main", "helper"], function (main) {
  33. main()
  34. })