-
Notifications
You must be signed in to change notification settings - Fork 445
/
project.config.ts
62 lines (50 loc) · 2.06 KB
/
project.config.ts
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
import { join } from 'path';
import { SeedAdvancedConfig } from './seed-advanced.config';
// import { ExtendPackages } from './seed.config.interfaces';
/**
* This class extends the basic seed configuration, allowing for project specific overrides. A few examples can be found
* below.
*/
export class ProjectConfig extends SeedAdvancedConfig {
PROJECT_TASKS_DIR = join(process.cwd(), this.TOOLS_DIR, 'tasks', 'project');
constructor() {
super();
// this.APP_TITLE = 'Put name of your app here';
// this.GOOGLE_ANALYTICS_ID = 'Your site's ID';
/* Enable typeless compiler runs (faster) between typed compiler runs. */
// this.TYPED_COMPILE_INTERVAL = 5;
// Add `NPM` third-party libraries to be injected/bundled.
this.NPM_DEPENDENCIES = [
...this.NPM_DEPENDENCIES,
// {src: 'jquery/dist/jquery.min.js', inject: 'libs'},
];
// Add `local` third-party libraries to be injected/bundled.
this.APP_ASSETS = [
// {src: `${this.APP_SRC}/your-path-to-lib/libs/jquery-ui.js`, inject: true, vendor: false}
// {src: `${this.CSS_SRC}/path-to-lib/test-lib.css`, inject: true, vendor: false},
];
this.ROLLUP_INCLUDE_DIR = [
...this.ROLLUP_INCLUDE_DIR,
//'node_modules/moment/**'
];
this.ROLLUP_NAMED_EXPORTS = [
...this.ROLLUP_NAMED_EXPORTS,
//{'node_modules/immutable/dist/immutable.js': [ 'Map' ]},
];
// Add packages (e.g. ng2-translate)
// ng2-translate is already added with the advanced seed - here for example only
// let additionalPackages: ExtendPackages[] = [{
// name: 'ng2-translate',
// // Path to the package's bundle
// path: 'node_modules/ng2-translate/bundles/ng2-translate.umd.js'
// }];
//
// this.addPackagesBundles(additionalPackages);
/* Add proxy middleware */
// this.PROXY_MIDDLEWARE = [
// require('http-proxy-middleware')('/api', { ws: false, target: 'http://localhost:3003' })
// ];
/* Add to or override NPM module configurations: */
// this.PLUGIN_CONFIGS['browser-sync'] = { ghostMode: false };
}
}