Skip to content

Commit bf36948

Browse files
authored
cleanup project (#1501)
1 parent fd4eae3 commit bf36948

25 files changed

+274
-874
lines changed

angular.json

Lines changed: 52 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@
2020
"build": {
2121
"builder": "@angular-devkit/build-angular:application",
2222
"options": {
23-
"outputPath": {
24-
"base": "dist/app"
25-
},
23+
"outputPath": "dist/app",
2624
"index": "src/index.html",
27-
"polyfills": [
28-
"src/polyfills.ts"
29-
],
25+
"browser": "src/main.ts",
26+
"polyfills": ["zone.js"],
3027
"tsConfig": "src/tsconfig.app.json",
3128
"assets": [
3229
"src/favicon.ico",
@@ -53,15 +50,20 @@
5350
"extractLicenses": false,
5451
"sourceMap": true,
5552
"optimization": false,
56-
"namedChunks": true,
57-
"browser": "src/main.ts"
53+
"namedChunks": true
5854
},
5955
"configurations": {
6056
"production": {
6157
"budgets": [
58+
{
59+
"type": "initial",
60+
"maximumWarning": "2.41MB",
61+
"maximumError": "2.5MB"
62+
},
6263
{
6364
"type": "anyComponentStyle",
64-
"maximumWarning": "6kb"
65+
"maximumWarning": "2kB",
66+
"maximumError": "4kB"
6567
}
6668
],
6769
"fileReplacements": [
@@ -70,33 +72,36 @@
7072
"with": "src/environments/environment.prod.ts"
7173
}
7274
],
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
7881
}
7982
},
80-
"defaultConfiguration": ""
83+
"defaultConfiguration": "production"
8184
},
8285
"serve": {
8386
"builder": "@angular-devkit/build-angular:dev-server",
84-
"options": {
85-
"buildTarget": "app:build"
86-
},
8787
"configurations": {
8888
"production": {
8989
"buildTarget": "app:build:production"
90+
},
91+
"development": {
92+
"buildTarget": "app:build:development"
9093
}
91-
}
94+
},
95+
"defaultConfiguration": "development"
9296
},
9397
"test": {
9498
"builder": "@angular-devkit/build-angular:karma",
9599
"options": {
96-
"main": "src/test.ts",
97-
"polyfills": "src/polyfills.ts",
100+
"polyfills": [
101+
"zone.js",
102+
"zone.js/testing"
103+
],
98104
"tsConfig": "src/tsconfig.spec.json",
99-
"karmaConfig": "src/karma.conf.js",
100105
"styles": [
101106
{
102107
"input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
@@ -131,22 +136,26 @@
131136
"build": {
132137
"builder": "@angular-devkit/build-angular:ng-packagr",
133138
"options": {
134-
"tsConfig": "projects/code-editor/tsconfig.lib.json",
135139
"project": "projects/code-editor/ng-package.json"
136140
},
137141
"configurations": {
138142
"production": {
139-
"project": "projects/code-editor/ng-package.prod.json",
140143
"tsConfig": "projects/code-editor/tsconfig.lib.prod.json"
144+
},
145+
"development": {
146+
"tsConfig": "projects/code-editor/tsconfig.lib.json"
141147
}
142-
}
148+
},
149+
"defaultConfiguration": "production"
143150
},
144151
"test": {
145152
"builder": "@angular-devkit/build-angular:karma",
146153
"options": {
147-
"main": "projects/code-editor/src/test.ts",
148154
"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+
]
150159
}
151160
},
152161
"lint": {
@@ -170,13 +179,10 @@
170179
"build": {
171180
"builder": "@angular-devkit/build-angular:application",
172181
"options": {
173-
"outputPath": {
174-
"base": "dist/multiple-editors"
175-
},
182+
"outputPath": "dist/multiple-editors",
176183
"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"],
180186
"tsConfig": "projects/multiple-editors/tsconfig.app.json",
181187
"assets": [
182188
"projects/multiple-editors/src/favicon.ico",
@@ -195,12 +201,7 @@
195201
"styles": [
196202
"projects/multiple-editors/src/styles.css"
197203
],
198-
"scripts": [],
199-
"extractLicenses": false,
200-
"sourceMap": true,
201-
"optimization": false,
202-
"namedChunks": true,
203-
"browser": "projects/multiple-editors/src/main.ts"
204+
"scripts": []
204205
},
205206
"configurations": {
206207
"production": {
@@ -210,63 +211,27 @@
210211
"with": "projects/multiple-editors/src/environments/environment.prod.ts"
211212
}
212213
],
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
230220
}
231221
},
232-
"defaultConfiguration": ""
222+
"defaultConfiguration": "production"
233223
},
234224
"serve": {
235225
"builder": "@angular-devkit/build-angular:dev-server",
236-
"options": {
237-
"buildTarget": "multiple-editors:build"
238-
},
239226
"configurations": {
240227
"production": {
241228
"buildTarget": "multiple-editors:build:production"
229+
},
230+
"development": {
231+
"buildTarget": "multiple-editors:build:development"
242232
}
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"
270235
}
271236
}
272237
}

0 commit comments

Comments
 (0)