app.js 941 B

12345678910111213141516171819202122232425262728
  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. "chroma-js": "../bower_components/chroma-js/chroma.min",
  7. "moment": "../bower_components/moment/min/moment-with-locales.min",
  8. "tablesort": "../bower_components/tablesort/tablesort.min",
  9. "tablesort.numeric": "../bower_components/tablesort/src/sorts/tablesort.numeric",
  10. "d3": "../bower_components/d3/d3.min",
  11. "numeral": "../bower_components/numeraljs/min/numeral.min",
  12. "numeral-intl": "../bower_components/numeraljs/min/languages.min",
  13. "helper": "../helper"
  14. },
  15. shim: {
  16. "leaflet.label": ["leaflet"],
  17. "tablesort": {
  18. exports: "Tablesort"
  19. },
  20. "numeral-intl": ["numeral"],
  21. "tablesort.numeric": ["tablesort"],
  22. "helper": ["numeral-intl"]
  23. }
  24. })
  25. require(["main", "helper"], function (main) {
  26. main()
  27. })