Should be nested so it doesn't cause a tranclusion error with 2 directives on the...
[dlux.git] / build.config.js
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   /**
14    * This is a collection of file patterns that refer to our app code (the
15    * stuff in `src/`). These file paths are used in the configuration of
16    * build tasks. `js` is all project javascript, less tests. `ctpl` contains
17    * our reusable components' (`src/common`) template HTML files, while
18    * `atpl` contains the same, but for our app's code. `html` is just our
19    * main HTML file, `less` is our main stylesheet, and `unit` contains our
20    * app's unit tests.
21    */
22   app_files: {
23     //js: [ 'src/app/*.js', 'src/common/*.js', 'src/config.js', '!src/**/*.spec.js' ],
24     js: [ 'src/**/*.js', '!src/**/*.spec.js', '!src/assets/**/*.js' ],
25     jsunit: [ 'src/**/*.spec.js' ],
26
27     coffee: [ 'src/**/*.coffee', '!src/**/*.spec.coffee' ],
28     coffeeunit: [ 'src/**/*.spec.coffee' ],
29
30     atpl: [ 'src/app/**/*.tpl.html' ],
31     ctpl: [ 'src/common/**/*.tpl.html' ],
32
33     html: [ 'src/index.html' ],
34     less: 'src/less/main.less'
35   },
36
37   /**
38    * This is a collection of files used during testing only.
39    */
40   test_files: {
41     js: [
42       'vendor/angular-mocks/angular-mocks.js'
43     ]
44   },
45
46   /**
47    * This is the same as `app_files`, except it contains patterns that
48    * reference vendor code (`vendor/`) that we need to place into the build
49    * process somewhere. While the `app_files` property ensures all
50    * standardized files are collected for compilation, it is the user's job
51    * to ensure non-standardized (i.e. vendor-related) files are handled
52    * appropriately in `vendor_files.js`.
53    *
54    * The `vendor_files.js` property holds files to be automatically
55    * concatenated and minified with our project source files.
56    *
57    * The `vendor_files.css` property holds any CSS files to be automatically
58    * included in our app.
59    *
60    * The `vendor_files.assets` property holds any assets to be copied along
61    * with our app's assets. This structure is flattened, so it is not
62    * recommended that you use wildcards.
63    */
64   vendor_files: {
65     js: [
66       'vendor/jquery/jquery.min.js',
67       'vendor/bootstrap/dist/js/bootstrap.min.js',
68       'vendor/underscore/underscore-min.js',
69       'vendor/underscore.string/dist/underscore.string.min.js',
70       'vendor/select2/select2.js',
71       'vendor/d3/d3.min.js',
72       'vendor/angular/index.js',
73       'vendor/angular-cookies/index.js',
74       'vendor/angular-route/index.js',
75       'vendor/angular-ui-router/index.js',
76       'vendor/angular-ui-select2/index.js',
77       'vendor/restangular/dist/restangular.min.js'
78     ],
79     css: [
80       'vendor/bootstrap/dist/css/bootstrap.min.css',
81       'vendor/select2/select2.css',
82       'vendor/select2-bootstrap-css/select2-bootstrap.css'
83     ],
84     assets: [
85       'vendor/**/*.gif',
86       'vendor/**/*.jpg',
87       'vendor/**/*.png',
88       'vendor/**/*.woff',
89       'vendor/**/*.ttf'
90     ]
91   },
92 };