summaryrefslogtreecommitdiff
path: root/etc/build.js
blob: 9b96056d7a656e6841d567372f4efe57018c887a (plain)
  1. {
  2.     appDir: '../src',
  3. mainConfigFile: '../src/js/slippymap.js',
  4. dir: '../build',
  5. modules: [
  6. //First set up the common build layer.
  7. {
  8. //module names are relative to baseUrl
  9. name: '../slippymap',
  10. //List common dependencies here. Only need to list
  11. //top level dependencies, "include" will find
  12. //nested dependencies.
  13. include: [
  14. 'leaflet',
  15. 'leaflet.extra-markers',
  16. 'leaflet.markercluster',
  17. 'app/mapfactory',
  18. 'app/boundary',
  19. 'app/places'
  20. ]
  21. },
  22. //Now set up a build layer for each page, but exclude
  23. //the common one. "exclude" will exclude
  24. //the nested, built dependencies from "slippymap". Any
  25. //"exclude" that includes built modules should be
  26. //listed before the build layer that wants to exclude it.
  27. //"include" the appropriate "app/main*" module since by default
  28. //it will not get added to the build since it is loaded by a nested
  29. //requirejs in the page*.js files.
  30. {
  31. name: '../tours',
  32. include: [
  33. 'json!data/bydele.json'
  34. ],
  35. exclude: ['../slippymap']
  36. }
  37. ],
  38. optimize: "uglify2",
  39. optimizeCss: "standard.keepLines",
  40. removeCombined: true,
  41. }