This repository has been archived by the owner on Jun 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.config.js
95 lines (89 loc) · 3.85 KB
/
build.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
* This file/module contains all configuration for the build process.
*/
module.exports = {
/**
* The `build_dir` folder is where the project is compiled for development
*/
build_dir: 'build',
/**
* Temp Directory used during the build and deleted afterwards.
*/
temp_dir: 'temp',
/*
* Test directory to store test coverage and testing classes
*/
test_dir: 'test',
/**
* Distribution Directory, where the project is compiled for production
*/
dist_dir: 'dist',
/**
* This is a collection of file patterns that refer to the app. These file paths are used in
* the configuration of build tasks. `ts` is all project typescript, except the tests.
* 'jsunit' are all unit tests. `html` are all the HTML files, `less` are the stylesheets.
*/
app_files: {
ts: [ 'app/src/**/*.ts', '!app/src/**/*.spec.ts' ],
tsunit: [ 'app/src/**/*.spec.ts' ],
html: [ 'app/index.html', 'app/src/**/*.html' ],
less: ['app/src/**/*.less', 'app/assets/style/*.less'],
assets: ['fonts/**/*.*', 'resource/**/*.*']
},
/**
* This is the same as `app_files`, except it contains patterns that
* reference library code (`bower_components/`) that need to be placed into the build
* process somewhere. While the `app_files` property ensures all
* standardized files are collected for compilation, it is the user's job
* to ensure non-standardized (i.e. vendor-related) files are handled
* appropriately in `vendor_files.js`.
*
* The `vendor_files.js` property holds files to be automatically
* concatenated and minified with the project source files.
*
* The `vendor_files.css` property holds any CSS files to be automatically
* included in the app.
*
* The `vendor_files.assets` property holds any assets to be copied along
* with the app's assets. This structure is flattened, so it is not
* recommended to use wildcards.
*/
vendor_files: {
js: [
'app/assets/libs/jquery/dist/jquery.js',
'app/assets/libs/angular/angular.js',
'app/assets/libs/angular-ui-router/release/angular-ui-router.js',
'app/assets/internal_lib/angular-ui-tree/angular-ui-tree.js',
'app/assets/libs/bootstrap/dist/js/bootstrap.js',
'app/assets/libs/angular-bootstrap/ui-bootstrap-tpls.js',
'app/assets/libs/angular-ui-grid/ui-grid.js',
'app/assets/libs/angular-ui-validate/dist/validate.js',
'app/assets/libs/lodash-compat/lodash.js',
'app/assets/libs/path-loader/browser/path-loader.js',
'app/assets/libs/traverse/traverse.js',
'app/assets/libs/json-refs/browser/json-refs.js',
'node_modules/tv4/tv4.js',
'node_modules/jsonforms/dist/jsonforms.js',
'app/assets/libs/material-design-lite/material.js',
'app/assets/libs/angular-animate/angular-animate.js',
'app/assets/libs/angular-aria/angular-aria.js',
'app/assets/libs/angular-material/angular-material.js',
'app/assets/libs/clipboard/dist/clipboard.min.js',
'app/assets/libs/ngclipboard/dist/ngclipboard.js',
'app/assets/libs/angular-file-upload/dist/angular-file-upload.js'
],
test: [
'app/assets/libs/angular-mocks/angular-mocks.js'
],
css: [
'app/assets/internal_lib/angular-ui-tree/angular-ui-tree.min.css',
'app/assets/libs/bootstrap/dist/css/bootstrap.css',
'app/assets/libs/bootstrap/dist/css/bootstrap-theme.css',
'app/assets/libs/material-design-lite/material.css',
'app/assets/libs/angular-material/angular-material.css',
'node_modules/jsonforms/dist/jsonforms.css'
],
assets: [
]
}
};