|
7 | 7 | "root": "",
|
8 | 8 | "sourceRoot": "src",
|
9 | 9 | "projectType": "application",
|
| 10 | + "prefix": "app", |
| 11 | + "schematics": { |
| 12 | + "@schematics/angular:component": { |
| 13 | + "styleext": "scss" |
| 14 | + } |
| 15 | + }, |
10 | 16 | "architect": {
|
11 | 17 | "build": {
|
12 | 18 | "builder": "@angular-devkit/build-angular:browser",
|
13 | 19 | "options": {
|
14 | 20 | "outputPath": "dist",
|
15 | 21 | "index": "src/index.html",
|
16 | 22 | "main": "src/main.ts",
|
17 |
| - "tsConfig": "src/tsconfig.app.json", |
18 | 23 | "polyfills": "src/polyfills.ts",
|
| 24 | + "tsConfig": "src/tsconfig.app.json", |
19 | 25 | "assets": [
|
20 | 26 | "src/assets",
|
21 | 27 | "src/favicon.ico"
|
22 | 28 | ],
|
23 | 29 | "styles": [
|
| 30 | + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", |
24 | 31 | "src/styles.scss"
|
25 | 32 | ],
|
26 | 33 | "scripts": []
|
27 | 34 | },
|
28 | 35 | "configurations": {
|
29 | 36 | "production": {
|
| 37 | + "fileReplacements": [ |
| 38 | + { |
| 39 | + "replace": "src/environments/environment.ts", |
| 40 | + "with": "src/environments/environment.prod.ts" |
| 41 | + } |
| 42 | + ], |
30 | 43 | "optimization": true,
|
31 | 44 | "outputHashing": "all",
|
32 | 45 | "sourceMap": false,
|
|
36 | 49 | "extractLicenses": true,
|
37 | 50 | "vendorChunk": false,
|
38 | 51 | "buildOptimizer": true,
|
39 |
| - "fileReplacements": [ |
| 52 | + "budgets": [ |
40 | 53 | {
|
41 |
| - "replace": "src/environments/environment.ts", |
42 |
| - "with": "src/environments/environment.prod.ts" |
| 54 | + "type": "initial", |
| 55 | + "maximumWarning": "2mb", |
| 56 | + "maximumError": "5mb" |
43 | 57 | }
|
44 | 58 | ]
|
45 | 59 | }
|
|
66 | 80 | "builder": "@angular-devkit/build-angular:karma",
|
67 | 81 | "options": {
|
68 | 82 | "main": "src/test.ts",
|
69 |
| - "karmaConfig": "src/karma.conf.js", |
70 | 83 | "polyfills": "src/polyfills.ts",
|
71 | 84 | "tsConfig": "src/tsconfig.spec.json",
|
72 |
| - "scripts": [], |
| 85 | + "karmaConfig": "src/karma.conf.js", |
73 | 86 | "styles": [
|
74 |
| - "src/styles.css" |
| 87 | + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", |
| 88 | + "src/styles.scss" |
75 | 89 | ],
|
| 90 | + "scripts": [], |
76 | 91 | "assets": [
|
77 | 92 | "src/assets",
|
78 | 93 | "src/favicon.ico"
|
|
96 | 111 | "tutorial-angular-httpclient-e2e": {
|
97 | 112 | "root": "e2e/",
|
98 | 113 | "projectType": "application",
|
| 114 | + "prefix": "", |
99 | 115 | "architect": {
|
100 | 116 | "e2e": {
|
101 | 117 | "builder": "@angular-devkit/build-angular:protractor",
|
102 | 118 | "options": {
|
103 |
| - "protractorConfig": "./protractor.conf.js", |
| 119 | + "protractorConfig": "e2e/protractor.conf.js", |
104 | 120 | "devServerTarget": "tutorial-angular-httpclient:serve"
|
| 121 | + }, |
| 122 | + "configurations": { |
| 123 | + "production": { |
| 124 | + "devServerTarget": "tutorial-angular-httpclient:serve:production" |
| 125 | + } |
105 | 126 | }
|
106 | 127 | },
|
107 | 128 | "lint": {
|
108 | 129 | "builder": "@angular-devkit/build-angular:tslint",
|
109 | 130 | "options": {
|
110 |
| - "tsConfig": [ |
111 |
| - "e2e/tsconfig.e2e.json" |
112 |
| - ], |
| 131 | + "tsConfig": "e2e/tsconfig.e2e.json", |
113 | 132 | "exclude": [
|
114 | 133 | "**/node_modules/**"
|
115 | 134 | ]
|
|
118 | 137 | }
|
119 | 138 | }
|
120 | 139 | },
|
121 |
| - "defaultProject": "tutorial-angular-httpclient", |
122 |
| - "schematics": { |
123 |
| - "@schematics/angular:component": { |
124 |
| - "prefix": "app", |
125 |
| - "styleext": "scss" |
126 |
| - }, |
127 |
| - "@schematics/angular:directive": { |
128 |
| - "prefix": "app" |
129 |
| - } |
130 |
| - } |
| 140 | + "defaultProject": "tutorial-angular-httpclient" |
131 | 141 | }
|
0 commit comments