4
0

app.js 1.0 KB

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