aboutsummaryrefslogtreecommitdiff
path: root/bin/build.js
blob: 3b750f50f8f861147fbd87a249ba6b53bfb8ff90 (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. 'app/mapfactory',
  16. 'app/places',
  17. 'app/position'
  18. ]
  19. },
  20. //Now set up a build layer for each page, but exclude
  21. //the common one. "exclude" will exclude
  22. //the nested, built dependencies from "slippymap". Any
  23. //"exclude" that includes built modules should be
  24. //listed before the build layer that wants to exclude it.
  25. //"include" the appropriate "app/main*" module since by default
  26. //it will not get added to the build since it is loaded by a nested
  27. //requirejs in the page*.js files.
  28. {
  29. name: '../world-staff',
  30. include: [
  31. 'json!data/staff.json'
  32. ],
  33. exclude: ['../slippymap']
  34. }
  35. ],
  36. optimize: "uglify2",
  37. optimizeCss: "standard.keepLines",
  38. removeCombined: true,
  39. }