summaryrefslogtreecommitdiff
path: root/etc/build.js
blob: 3ecf8d0b54fbec7dc1536afe78de0002891c0570 (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/copenhagen.json',
  34. 'app/places',
  35. 'json!data/tours.json'
  36. ],
  37. exclude: ['../slippymap']
  38. }
  39. ],
  40. optimize: "uglify2",
  41. optimizeCss: "standard.keepLines",
  42. removeCombined: true,
  43. }