|
4 | 4 | "newProjectRoot": "projects",
|
5 | 5 | "projects": {
|
6 | 6 | "angular-cli": {
|
7 |
| - "root": "", |
8 |
| - "sourceRoot": "src", |
9 | 7 | "projectType": "application",
|
10 |
| - "prefix": "app", |
11 | 8 | "schematics": {
|
12 | 9 | "@schematics/angular:component": {
|
13 |
| - "styleext": "scss" |
| 10 | + "style": "scss" |
14 | 11 | }
|
15 | 12 | },
|
| 13 | + "root": "", |
| 14 | + "sourceRoot": "src", |
| 15 | + "prefix": "app", |
16 | 16 | "architect": {
|
17 | 17 | "build": {
|
18 | 18 | "builder": "@angular-devkit/build-angular:browser",
|
|
21 | 21 | "index": "src/index.html",
|
22 | 22 | "main": "src/main.ts",
|
23 | 23 | "polyfills": "src/polyfills.ts",
|
24 |
| - "tsConfig": "src/tsconfig.app.json", |
| 24 | + "tsConfig": "tsconfig.app.json", |
| 25 | + "aot": false, |
25 | 26 | "assets": ["src/favicon.png", "src/assets"],
|
26 | 27 | "styles": ["src/styles.scss"],
|
27 | 28 | "scripts": []
|
|
42 | 43 | "aot": true,
|
43 | 44 | "extractLicenses": true,
|
44 | 45 | "vendorChunk": false,
|
45 |
| - "buildOptimizer": true |
| 46 | + "buildOptimizer": true, |
| 47 | + "budgets": [ |
| 48 | + { |
| 49 | + "type": "initial", |
| 50 | + "maximumWarning": "2mb", |
| 51 | + "maximumError": "5mb" |
| 52 | + }, |
| 53 | + { |
| 54 | + "type": "anyComponentStyle", |
| 55 | + "maximumWarning": "6kb", |
| 56 | + "maximumError": "10kb" |
| 57 | + } |
| 58 | + ] |
46 | 59 | }
|
47 | 60 | }
|
48 | 61 | },
|
|
68 | 81 | "options": {
|
69 | 82 | "main": "src/test.ts",
|
70 | 83 | "polyfills": "src/polyfills.ts",
|
71 |
| - "tsConfig": "src/tsconfig.spec.json", |
72 |
| - "karmaConfig": "src/karma.conf.js", |
73 |
| - "styles": ["styles.scss"], |
74 |
| - "scripts": [], |
75 |
| - "assets": ["src/favicon.png", "src/assets"] |
| 84 | + "tsConfig": "tsconfig.spec.json", |
| 85 | + "karmaConfig": "karma.conf.js", |
| 86 | + "assets": ["src/favicon.png", "src/assets"], |
| 87 | + "styles": ["src/styles.scss"], |
| 88 | + "scripts": [] |
76 | 89 | }
|
77 | 90 | },
|
78 | 91 | "lint": {
|
79 | 92 | "builder": "@angular-devkit/build-angular:tslint",
|
80 | 93 | "options": {
|
81 |
| - "tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"], |
| 94 | + "tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"], |
82 | 95 | "exclude": ["**/node_modules/**"]
|
83 | 96 | }
|
84 |
| - } |
85 |
| - } |
86 |
| - }, |
87 |
| - "angular-cli-e2e": { |
88 |
| - "root": "e2e/", |
89 |
| - "projectType": "application", |
90 |
| - "architect": { |
| 97 | + }, |
91 | 98 | "e2e": {
|
92 | 99 | "builder": "@angular-devkit/build-angular:protractor",
|
93 | 100 | "options": {
|
94 | 101 | "protractorConfig": "e2e/protractor.conf.js",
|
95 | 102 | "devServerTarget": "angular-cli:serve"
|
96 |
| - } |
97 |
| - }, |
98 |
| - "lint": { |
99 |
| - "builder": "@angular-devkit/build-angular:tslint", |
100 |
| - "options": { |
101 |
| - "tsConfig": "e2e/tsconfig.e2e.json", |
102 |
| - "exclude": ["**/node_modules/**"] |
| 103 | + }, |
| 104 | + "configurations": { |
| 105 | + "production": { |
| 106 | + "devServerTarget": "angular-cli:serve:production" |
| 107 | + } |
103 | 108 | }
|
104 | 109 | }
|
105 | 110 | }
|
|
0 commit comments