Skip to content

Commit 1f6aa2c

Browse files
committed
Update Angular version
1 parent 602bb48 commit 1f6aa2c

21 files changed

+10784
-18279
lines changed

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 16.13.0
1+
nodejs 20.17.0

angular.json

+20-34
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,18 @@
55
"projects": {
66
"ngx-pdf-viewer": {
77
"projectType": "application",
8-
"schematics": {
9-
"@schematics/angular:application": {
10-
"strict": true
11-
}
12-
},
8+
"schematics": {},
139
"root": "",
1410
"sourceRoot": "src",
1511
"prefix": "app",
1612
"architect": {
1713
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular-devkit/build-angular:application",
1915
"options": {
2016
"outputPath": "dist/ngx-pdf-viewer",
2117
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
18+
"browser": "src/main.ts",
19+
"polyfills": ["zone.js"],
2420
"tsConfig": "tsconfig.app.json",
2521
"assets": [
2622
"src/favicon.ico",
@@ -39,30 +35,21 @@
3935
"budgets": [
4036
{
4137
"type": "initial",
42-
"maximumWarning": "500kb",
43-
"maximumError": "1mb"
38+
"maximumWarning": "500kB",
39+
"maximumError": "1MB"
4440
},
4541
{
4642
"type": "anyComponentStyle",
47-
"maximumWarning": "2kb",
48-
"maximumError": "4kb"
49-
}
50-
],
51-
"fileReplacements": [
52-
{
53-
"replace": "src/environments/environment.ts",
54-
"with": "src/environments/environment.prod.ts"
43+
"maximumWarning": "2kB",
44+
"maximumError": "4kB"
5545
}
5646
],
5747
"outputHashing": "all"
5848
},
5949
"development": {
60-
"buildOptimizer": false,
6150
"optimization": false,
62-
"vendorChunk": true,
6351
"extractLicenses": false,
64-
"sourceMap": true,
65-
"namedChunks": true
52+
"sourceMap": true
6653
}
6754
},
6855
"defaultConfiguration": "production"
@@ -71,34 +58,33 @@
7158
"builder": "@angular-devkit/build-angular:dev-server",
7259
"configurations": {
7360
"production": {
74-
"browserTarget": "ngx-pdf-viewer:build:production"
61+
"buildTarget": "ngx-pdf-viewer:build:production"
7562
},
7663
"development": {
77-
"browserTarget": "ngx-pdf-viewer:build:development"
64+
"buildTarget": "ngx-pdf-viewer:build:development"
7865
}
7966
},
8067
"defaultConfiguration": "development"
8168
},
8269
"extract-i18n": {
83-
"builder": "@angular-devkit/build-angular:extract-i18n",
84-
"options": {
85-
"browserTarget": "ngx-pdf-viewer:build"
86-
}
70+
"builder": "@angular-devkit/build-angular:extract-i18n"
8771
},
8872
"test": {
8973
"builder": "@angular-devkit/build-angular:karma",
9074
"options": {
91-
"main": "src/test.ts",
92-
"polyfills": "src/polyfills.ts",
75+
"polyfills": ["zone.js", "zone.js/testing"],
9376
"tsConfig": "tsconfig.spec.json",
94-
"karmaConfig": "karma.conf.js",
95-
"assets": ["src/favicon.ico", "src/assets"],
77+
"assets": [
78+
{
79+
"glob": "**/*",
80+
"input": "public"
81+
}
82+
],
9683
"styles": ["src/styles.css"],
9784
"scripts": []
9885
}
9986
}
10087
}
10188
}
102-
},
103-
"defaultProject": "ngx-pdf-viewer"
89+
}
10490
}

0 commit comments

Comments
 (0)