Skip to content

Commit d14cb05

Browse files
committed
Modified project settings
1 parent 1bb6359 commit d14cb05

File tree

2 files changed

+56
-50
lines changed

2 files changed

+56
-50
lines changed

angular.json

Lines changed: 53 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,71 +5,83 @@
55
"projects": {
66
"pivot-angular": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:application": {
10+
"strict": true
11+
}
12+
},
913
"root": "",
1014
"sourceRoot": "src",
1115
"prefix": "app",
1216
"architect": {
1317
"build": {
1418
"builder": "@angular-devkit/build-angular:browser",
1519
"options": {
16-
"allowedCommonJsDependencies": ["webdatarocks"],
20+
"allowedCommonJsDependencies": [
21+
"core-js",
22+
"raf",
23+
"xlsx",
24+
"@babel/runtime",
25+
"pdfmake"
26+
],
1727
"outputPath": "dist/pivot-angular",
1828
"index": "src/index.html",
1929
"main": "src/main.ts",
2030
"polyfills": "src/polyfills.ts",
2131
"tsConfig": "tsconfig.app.json",
22-
"aot": true,
23-
"assets": ["src/favicon.ico", "src/assets"],
32+
"assets": [
33+
"src/favicon.ico",
34+
"src/assets"
35+
],
2436
"styles": [
25-
"./node_modules/webdatarocks/webdatarocks.min.css",
2637
"src/styles.css"
2738
],
28-
"scripts": [
29-
"./node_modules/webdatarocks/webdatarocks.toolbar.min.js",
30-
"./node_modules/webdatarocks/webdatarocks.js"
31-
]
39+
"scripts": []
3240
},
3341
"configurations": {
3442
"production": {
35-
"fileReplacements": [
36-
{
37-
"replace": "src/environments/environment.ts",
38-
"with": "src/environments/environment.prod.ts"
39-
}
40-
],
41-
"optimization": true,
42-
"outputHashing": "all",
43-
"sourceMap": false,
44-
"namedChunks": false,
45-
"extractLicenses": true,
46-
"vendorChunk": false,
47-
"buildOptimizer": true,
4843
"budgets": [
4944
{
5045
"type": "initial",
51-
"maximumWarning": "2mb",
52-
"maximumError": "5mb"
46+
"maximumWarning": "500kb",
47+
"maximumError": "1mb"
5348
},
5449
{
5550
"type": "anyComponentStyle",
56-
"maximumWarning": "6kb",
57-
"maximumError": "10kb"
51+
"maximumWarning": "2kb",
52+
"maximumError": "4kb"
5853
}
59-
]
54+
],
55+
"fileReplacements": [
56+
{
57+
"replace": "src/environments/environment.ts",
58+
"with": "src/environments/environment.prod.ts"
59+
}
60+
],
61+
"outputHashing": "all"
62+
},
63+
"development": {
64+
"buildOptimizer": false,
65+
"optimization": false,
66+
"vendorChunk": true,
67+
"extractLicenses": false,
68+
"sourceMap": true,
69+
"namedChunks": true
6070
}
61-
}
71+
},
72+
"defaultConfiguration": "production"
6273
},
6374
"serve": {
6475
"builder": "@angular-devkit/build-angular:dev-server",
65-
"options": {
66-
"browserTarget": "pivot-angular:build"
67-
},
6876
"configurations": {
6977
"production": {
7078
"browserTarget": "pivot-angular:build:production"
79+
},
80+
"development": {
81+
"browserTarget": "pivot-angular:build:development"
7182
}
72-
}
83+
},
84+
"defaultConfiguration": "development"
7385
},
7486
"extract-i18n": {
7587
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -84,27 +96,20 @@
8496
"polyfills": "src/polyfills.ts",
8597
"tsConfig": "tsconfig.spec.json",
8698
"karmaConfig": "karma.conf.js",
87-
"assets": ["src/favicon.ico", "src/assets"],
88-
"styles": ["src/styles.css"],
99+
"assets": [
100+
"src/favicon.ico",
101+
"src/assets"
102+
],
103+
"styles": [
104+
"src/styles.css"
105+
],
89106
"scripts": []
90107
}
91-
},
92-
"e2e": {
93-
"builder": "@angular-devkit/build-angular:protractor",
94-
"options": {
95-
"protractorConfig": "e2e/protractor.conf.js",
96-
"devServerTarget": "pivot-angular:serve"
97-
},
98-
"configurations": {
99-
"production": {
100-
"devServerTarget": "pivot-angular:serve:production"
101-
}
102-
}
103108
}
104109
}
105110
}
106111
},
107112
"cli": {
108-
"analytics": "853f390c-cfd7-45cc-bd9d-1a818446e77c"
113+
"analytics": false
109114
}
110-
}
115+
}

tsconfig.base.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
"declaration": false,
88
"downlevelIteration": true,
99
"experimentalDecorators": true,
10-
"module": "es2020",
10+
"module": "es2022",
1111
"moduleResolution": "node",
1212
"importHelpers": true,
13-
"target": "es2015",
13+
"target": "es2022",
14+
"useDefineForClassFields": false,
1415
"typeRoots": [
1516
"node_modules/@types"
1617
],

0 commit comments

Comments
 (0)