|
20 | 20 | "build": {
|
21 | 21 | "builder": "@angular-devkit/build-angular:application",
|
22 | 22 | "options": {
|
23 |
| - "outputPath": { |
24 |
| - "base": "dist/app" |
25 |
| - }, |
| 23 | + "outputPath": "dist/app", |
26 | 24 | "index": "src/index.html",
|
27 |
| - "polyfills": [ |
28 |
| - "src/polyfills.ts" |
29 |
| - ], |
| 25 | + "browser": "src/main.ts", |
| 26 | + "polyfills": ["zone.js"], |
30 | 27 | "tsConfig": "src/tsconfig.app.json",
|
31 | 28 | "assets": [
|
32 | 29 | "src/favicon.ico",
|
|
53 | 50 | "extractLicenses": false,
|
54 | 51 | "sourceMap": true,
|
55 | 52 | "optimization": false,
|
56 |
| - "namedChunks": true, |
57 |
| - "browser": "src/main.ts" |
| 53 | + "namedChunks": true |
58 | 54 | },
|
59 | 55 | "configurations": {
|
60 | 56 | "production": {
|
61 | 57 | "budgets": [
|
| 58 | + { |
| 59 | + "type": "initial", |
| 60 | + "maximumWarning": "2.41MB", |
| 61 | + "maximumError": "2.5MB" |
| 62 | + }, |
62 | 63 | {
|
63 | 64 | "type": "anyComponentStyle",
|
64 |
| - "maximumWarning": "6kb" |
| 65 | + "maximumWarning": "2kB", |
| 66 | + "maximumError": "4kB" |
65 | 67 | }
|
66 | 68 | ],
|
67 | 69 | "fileReplacements": [
|
|
70 | 72 | "with": "src/environments/environment.prod.ts"
|
71 | 73 | }
|
72 | 74 | ],
|
73 |
| - "optimization": true, |
74 |
| - "outputHashing": "all", |
75 |
| - "sourceMap": false, |
76 |
| - "namedChunks": false, |
77 |
| - "extractLicenses": true |
| 75 | + "outputHashing": "all" |
| 76 | + }, |
| 77 | + "development": { |
| 78 | + "optimization": false, |
| 79 | + "extractLicenses": false, |
| 80 | + "sourceMap": true |
78 | 81 | }
|
79 | 82 | },
|
80 |
| - "defaultConfiguration": "" |
| 83 | + "defaultConfiguration": "production" |
81 | 84 | },
|
82 | 85 | "serve": {
|
83 | 86 | "builder": "@angular-devkit/build-angular:dev-server",
|
84 |
| - "options": { |
85 |
| - "buildTarget": "app:build" |
86 |
| - }, |
87 | 87 | "configurations": {
|
88 | 88 | "production": {
|
89 | 89 | "buildTarget": "app:build:production"
|
| 90 | + }, |
| 91 | + "development": { |
| 92 | + "buildTarget": "app:build:development" |
90 | 93 | }
|
91 |
| - } |
| 94 | + }, |
| 95 | + "defaultConfiguration": "development" |
92 | 96 | },
|
93 | 97 | "test": {
|
94 | 98 | "builder": "@angular-devkit/build-angular:karma",
|
95 | 99 | "options": {
|
96 |
| - "main": "src/test.ts", |
97 |
| - "polyfills": "src/polyfills.ts", |
| 100 | + "polyfills": [ |
| 101 | + "zone.js", |
| 102 | + "zone.js/testing" |
| 103 | + ], |
98 | 104 | "tsConfig": "src/tsconfig.spec.json",
|
99 |
| - "karmaConfig": "src/karma.conf.js", |
100 | 105 | "styles": [
|
101 | 106 | {
|
102 | 107 | "input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
|
|
131 | 136 | "build": {
|
132 | 137 | "builder": "@angular-devkit/build-angular:ng-packagr",
|
133 | 138 | "options": {
|
134 |
| - "tsConfig": "projects/code-editor/tsconfig.lib.json", |
135 | 139 | "project": "projects/code-editor/ng-package.json"
|
136 | 140 | },
|
137 | 141 | "configurations": {
|
138 | 142 | "production": {
|
139 |
| - "project": "projects/code-editor/ng-package.prod.json", |
140 | 143 | "tsConfig": "projects/code-editor/tsconfig.lib.prod.json"
|
| 144 | + }, |
| 145 | + "development": { |
| 146 | + "tsConfig": "projects/code-editor/tsconfig.lib.json" |
141 | 147 | }
|
142 |
| - } |
| 148 | + }, |
| 149 | + "defaultConfiguration": "production" |
143 | 150 | },
|
144 | 151 | "test": {
|
145 | 152 | "builder": "@angular-devkit/build-angular:karma",
|
146 | 153 | "options": {
|
147 |
| - "main": "projects/code-editor/src/test.ts", |
148 | 154 | "tsConfig": "projects/code-editor/tsconfig.spec.json",
|
149 |
| - "karmaConfig": "projects/code-editor/karma.conf.js" |
| 155 | + "polyfills": [ |
| 156 | + "zone.js", |
| 157 | + "zone.js/testing" |
| 158 | + ] |
150 | 159 | }
|
151 | 160 | },
|
152 | 161 | "lint": {
|
|
170 | 179 | "build": {
|
171 | 180 | "builder": "@angular-devkit/build-angular:application",
|
172 | 181 | "options": {
|
173 |
| - "outputPath": { |
174 |
| - "base": "dist/multiple-editors" |
175 |
| - }, |
| 182 | + "outputPath": "dist/multiple-editors", |
176 | 183 | "index": "projects/multiple-editors/src/index.html",
|
177 |
| - "polyfills": [ |
178 |
| - "projects/multiple-editors/src/polyfills.ts" |
179 |
| - ], |
| 184 | + "browser": "projects/multiple-editors/src/main.ts", |
| 185 | + "polyfills": ["zone.js"], |
180 | 186 | "tsConfig": "projects/multiple-editors/tsconfig.app.json",
|
181 | 187 | "assets": [
|
182 | 188 | "projects/multiple-editors/src/favicon.ico",
|
|
195 | 201 | "styles": [
|
196 | 202 | "projects/multiple-editors/src/styles.css"
|
197 | 203 | ],
|
198 |
| - "scripts": [], |
199 |
| - "extractLicenses": false, |
200 |
| - "sourceMap": true, |
201 |
| - "optimization": false, |
202 |
| - "namedChunks": true, |
203 |
| - "browser": "projects/multiple-editors/src/main.ts" |
| 204 | + "scripts": [] |
204 | 205 | },
|
205 | 206 | "configurations": {
|
206 | 207 | "production": {
|
|
210 | 211 | "with": "projects/multiple-editors/src/environments/environment.prod.ts"
|
211 | 212 | }
|
212 | 213 | ],
|
213 |
| - "optimization": true, |
214 |
| - "outputHashing": "all", |
215 |
| - "sourceMap": false, |
216 |
| - "namedChunks": false, |
217 |
| - "extractLicenses": true, |
218 |
| - "budgets": [ |
219 |
| - { |
220 |
| - "type": "initial", |
221 |
| - "maximumWarning": "2mb", |
222 |
| - "maximumError": "5mb" |
223 |
| - }, |
224 |
| - { |
225 |
| - "type": "anyComponentStyle", |
226 |
| - "maximumWarning": "6kb", |
227 |
| - "maximumError": "10kb" |
228 |
| - } |
229 |
| - ] |
| 214 | + "outputHashing": "all" |
| 215 | + }, |
| 216 | + "development": { |
| 217 | + "optimization": false, |
| 218 | + "extractLicenses": false, |
| 219 | + "sourceMap": true |
230 | 220 | }
|
231 | 221 | },
|
232 |
| - "defaultConfiguration": "" |
| 222 | + "defaultConfiguration": "production" |
233 | 223 | },
|
234 | 224 | "serve": {
|
235 | 225 | "builder": "@angular-devkit/build-angular:dev-server",
|
236 |
| - "options": { |
237 |
| - "buildTarget": "multiple-editors:build" |
238 |
| - }, |
239 | 226 | "configurations": {
|
240 | 227 | "production": {
|
241 | 228 | "buildTarget": "multiple-editors:build:production"
|
| 229 | + }, |
| 230 | + "development": { |
| 231 | + "buildTarget": "multiple-editors:build:development" |
242 | 232 | }
|
243 |
| - } |
244 |
| - }, |
245 |
| - "test": { |
246 |
| - "builder": "@angular-devkit/build-angular:karma", |
247 |
| - "options": { |
248 |
| - "main": "projects/multiple-editors/src/test.ts", |
249 |
| - "polyfills": "projects/multiple-editors/src/polyfills.ts", |
250 |
| - "tsConfig": "projects/multiple-editors/tsconfig.spec.json", |
251 |
| - "karmaConfig": "projects/multiple-editors/karma.conf.js", |
252 |
| - "assets": [ |
253 |
| - "projects/multiple-editors/src/favicon.ico", |
254 |
| - "projects/multiple-editors/src/assets" |
255 |
| - ], |
256 |
| - "styles": [ |
257 |
| - "projects/multiple-editors/src/styles.css" |
258 |
| - ], |
259 |
| - "scripts": [] |
260 |
| - } |
261 |
| - }, |
262 |
| - "lint": { |
263 |
| - "builder": "@angular-eslint/builder:lint", |
264 |
| - "options": { |
265 |
| - "lintFilePatterns": [ |
266 |
| - "projects/multiple-editors/**/*.ts", |
267 |
| - "projects/multiple-editors/**/*.html" |
268 |
| - ] |
269 |
| - } |
| 233 | + }, |
| 234 | + "defaultConfiguration": "development" |
270 | 235 | }
|
271 | 236 | }
|
272 | 237 | }
|
|
0 commit comments