/build.config.js

https://bitbucket.org/ianmayo/ianmayo.bitbucket.org · JavaScript · 78 lines · 38 code · 5 blank · 35 comment · 0 complexity · 989ba475f003559dc8492a13541af8ac MD5 · raw file

  1. /**
  2. * This file/module contains all configuration for the build process.
  3. */
  4. module.exports = {
  5. /**
  6. * The `build_dir` folder is where our projects are compiled during
  7. * development and the `compile_dir` folder is where our app resides once it's
  8. * completely built.
  9. */
  10. build_dir: 'build',
  11. compile_dir: 'bin',
  12. /**
  13. * This is a collection of file patterns that refer to our app code (the
  14. * stuff in `src/`). These file paths are used in the configuration of
  15. * build tasks. `js` is all project javascript, less tests. `ctpl` contains
  16. * our reusable components' (`src/common`) template HTML files, while
  17. * `atpl` contains the same, but for our app's code. `html` is just our
  18. * main HTML file, `less` is our main stylesheet, `unit` contains our
  19. * app's unit tests, `fixture` contains $http data fixtures, and `scenario`
  20. * contains our app's e2e tests.
  21. */
  22. app_files: {
  23. js: [ 'src/**/*.js', '!src/**/*.spec.js', '!src/**/*.fixture.js', '!src/**/*.scenario.js', '!src/**/demo/**' ],
  24. jsunit: [ 'src/**/*.spec.js' ],
  25. jsfixture: [ 'src/**/*.fixture.js' ],
  26. jsscenario: [ 'src/**/*.scenario.js' ],
  27. coffee: [ 'src/**/*.coffee', '!src/**/*.spec.coffee', '!src/**/*.fixture.coffee', '!src/**/*.scenario.coffee' ],
  28. coffeeunit: [ 'src/**/*.spec.coffee' ],
  29. coffeefixture: [ 'src/**/*.fixture.coffee' ],
  30. coffeescenario: [ 'src/**/*.scenario.coffee' ],
  31. atpl: [ 'src/app/**/*.tpl.html' ],
  32. ctpl: [ 'src/common/**/*.tpl.html' ],
  33. html: [ 'src/index.html' ],
  34. less: 'src/less/main.less'
  35. },
  36. /**
  37. * This is the same as `app_files`, except it contains patterns that
  38. * reference vendor code (`vendor/`) that we need to place into the build
  39. * process somewhere. While the `app_files` property ensures all
  40. * standardized files are collected for compilation, it is the user's job
  41. * to ensure non-standardized (i.e. vendor-related) files are handled
  42. * appropriately in `vendor_files.js`.
  43. *
  44. * The `vendor_files.js` property holds files to be automatically
  45. * concatenated and minified with our project source files.
  46. *
  47. * The `vendor_files.css` property holds any CSS files to be automatically
  48. * included in our app.
  49. *
  50. * The `vendor_files.dev` property holds any JS files to be included for
  51. * development only.
  52. */
  53. vendor_files: {
  54. js: [
  55. 'vendor/jquery/jquery.js',
  56. 'vendor/underscore/underscore.js',
  57. 'vendor/angular/angular.js',
  58. 'vendor/angular-resource/angular-resource.js',
  59. 'vendor/angular-bootstrap/ui-bootstrap-tpls.min.js',
  60. 'vendor/placeholders/angular-placeholders-0.0.1-SNAPSHOT.min.js',
  61. 'vendor/angular-ui-router/release/angular-ui-router.js',
  62. 'vendor/angular-ui-utils/modules/route/route.js',
  63. 'vendor/angular-ui-utils/modules/event/event.js',
  64. 'vendor/angular-xeditable/dist/js/xeditable.min.js',
  65. 'vendor/respond/respond.src.js'
  66. ],
  67. css: [
  68. ],
  69. dev: [
  70. 'vendor/angular-mocks/angular-mocks.js'
  71. ]
  72. }
  73. };