/src/70 - ui-router Named Views/build.config.js

https://gitlab.com/bruce.ng/angularjs-lesson · JavaScript · 75 lines · 30 code · 7 blank · 38 comment · 0 complexity · fd3ecdd5c94c3b12ef7b06b6ca1104d7 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, and `unit` contains our
  19. * app's unit tests.
  20. */
  21. app_files: {
  22. js: [ 'src/**/*.js', '!src/**/*.spec.js', '!src/assets/**/*.js' ],
  23. jsunit: [ 'src/**/*.spec.js' ],
  24. atpl: [ 'src/app/**/*.tpl.html' ],
  25. ctpl: [ 'src/common/**/*.tpl.html' ],
  26. html: [ 'src/index.html' ],
  27. less: 'src/less/main.less'
  28. },
  29. /**
  30. * This is a collection of files used during testing only.
  31. */
  32. test_files: {
  33. js: [
  34. 'vendor/angular-mocks/angular-mocks.js',
  35. 'vendor/jasmine-jquery/lib/jasmine-jquery.js'
  36. ]
  37. },
  38. /**
  39. * This is the same as `app_files`, except it contains patterns that
  40. * reference vendor code (`vendor/`) that we need to place into the build
  41. * process somewhere. While the `app_files` property ensures all
  42. * standardized files are collected for compilation, it is the user's job
  43. * to ensure non-standardized (i.e. vendor-related) files are handled
  44. * appropriately in `vendor_files.js`.
  45. *
  46. * The `vendor_files.js` property holds files to be automatically
  47. * concatenated and minified with our project source files.
  48. *
  49. * The `vendor_files.css` property holds any CSS files to be automatically
  50. * included in our app.
  51. *
  52. * The `vendor_files.assets` property holds any assets to be copied along
  53. * with our app's assets. This structure is flattened, so it is not
  54. * recommended that you use wildcards.
  55. */
  56. vendor_files: {
  57. js: [
  58. 'vendor/jquery/jquery.js',
  59. 'vendor/angular/angular.js',
  60. 'vendor/angular-ui-router/release/angular-ui-router.js',
  61. 'vendor/lodash/dist/lodash.underscore.js'
  62. ],
  63. css: [
  64. ],
  65. assets: [
  66. ]
  67. },
  68. };