app.js 1.3 KB

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