Skip to content

Commit 28f7ad5

Browse files
committed
refactor: update Angular to v20
1 parent eb5a3b6 commit 28f7ad5

File tree

4 files changed

+1519
-3617
lines changed

4 files changed

+1519
-3617
lines changed

angular.json

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prefix": "",
1111
"architect": {
1212
"build": {
13-
"builder": "@angular-devkit/build-angular:ng-packagr",
13+
"builder": "@angular/build:ng-packagr",
1414
"options": {
1515
"project": "projects/code-editor/ng-package.json"
1616
},
@@ -25,7 +25,7 @@
2525
"defaultConfiguration": "production"
2626
},
2727
"test": {
28-
"builder": "@angular-devkit/build-angular:karma",
28+
"builder": "@angular/build:karma",
2929
"options": {
3030
"tsConfig": "projects/code-editor/tsconfig.spec.json",
3131
"polyfills": [
@@ -58,7 +58,7 @@
5858
"prefix": "app",
5959
"architect": {
6060
"build": {
61-
"builder": "@angular-devkit/build-angular:application",
61+
"builder": "@angular/build:application",
6262
"options": {
6363
"outputPath": "dist/dev-app",
6464
"index": "projects/dev-app/src/index.html",
@@ -100,7 +100,7 @@
100100
"defaultConfiguration": "production"
101101
},
102102
"serve": {
103-
"builder": "@angular-devkit/build-angular:dev-server",
103+
"builder": "@angular/build:dev-server",
104104
"configurations": {
105105
"production": {
106106
"buildTarget": "dev-app:build:production"
@@ -112,13 +112,13 @@
112112
"defaultConfiguration": "development"
113113
},
114114
"extract-i18n": {
115-
"builder": "@angular-devkit/build-angular:extract-i18n",
115+
"builder": "@angular/build:extract-i18n",
116116
"options": {
117117
"buildTarget": "dev-app:build"
118118
}
119119
},
120120
"test": {
121-
"builder": "@angular-devkit/build-angular:karma",
121+
"builder": "@angular/build:karma",
122122
"options": {
123123
"polyfills": [
124124
"zone.js",
@@ -158,5 +158,31 @@
158158
},
159159
"cli": {
160160
"analytics": false
161+
},
162+
"schematics": {
163+
"@schematics/angular:component": {
164+
"type": "component"
165+
},
166+
"@schematics/angular:directive": {
167+
"type": "directive"
168+
},
169+
"@schematics/angular:service": {
170+
"type": "service"
171+
},
172+
"@schematics/angular:guard": {
173+
"typeSeparator": "."
174+
},
175+
"@schematics/angular:interceptor": {
176+
"typeSeparator": "."
177+
},
178+
"@schematics/angular:module": {
179+
"typeSeparator": "."
180+
},
181+
"@schematics/angular:pipe": {
182+
"typeSeparator": "."
183+
},
184+
"@schematics/angular:resolver": {
185+
"typeSeparator": "."
186+
}
161187
}
162188
}

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,39 @@
2121
},
2222
"private": true,
2323
"dependencies": {
24-
"@acrodata/gui": "^2.4.0",
25-
"@angular/animations": "^19.2.15",
26-
"@angular/cdk": "^19.2.19",
27-
"@angular/common": "^19.2.15",
28-
"@angular/compiler": "^19.2.15",
29-
"@angular/core": "^19.2.15",
30-
"@angular/forms": "^19.2.15",
31-
"@angular/material": "^19.2.19",
32-
"@angular/platform-browser": "^19.2.15",
33-
"@angular/platform-browser-dynamic": "^19.2.15",
34-
"@angular/router": "^19.2.15",
24+
"@acrodata/gui": "^3.0.0",
25+
"@angular/animations": "^20.3.12",
26+
"@angular/cdk": "^20.2.13",
27+
"@angular/common": "^20.3.12",
28+
"@angular/compiler": "^20.3.12",
29+
"@angular/core": "^20.3.12",
30+
"@angular/forms": "^20.3.12",
31+
"@angular/material": "^20.2.13",
32+
"@angular/platform-browser": "^20.3.12",
33+
"@angular/platform-browser-dynamic": "^20.3.12",
34+
"@angular/router": "^20.3.12",
3535
"@codemirror/language-data": "^6.5.1",
3636
"@codemirror/merge": "^6.10.0",
3737
"@codemirror/theme-one-dark": "^6.1.2",
38-
"@ng-matero/extensions": "^19.3.0",
38+
"@ng-matero/extensions": "^20.3.0",
3939
"codemirror": "^6.0.1",
4040
"lodash-es": "^4.17.21",
4141
"rxjs": "~7.8.0",
4242
"tslib": "^2.3.0",
4343
"zone.js": "~0.15.1"
4444
},
4545
"devDependencies": {
46-
"@angular-devkit/build-angular": "^19.2.19",
47-
"@angular/cli": "^19.2.19",
48-
"@angular/compiler-cli": "^19.2.15",
46+
"@angular/build": "^20.3.10",
47+
"@angular/cli": "^20.3.10",
48+
"@angular/compiler-cli": "^20.3.12",
4949
"@commitlint/cli": "^19.5.0",
5050
"@commitlint/config-conventional": "^19.5.0",
5151
"@types/jasmine": "~5.1.0",
5252
"@types/lodash-es": "^4.17.10",
5353
"@types/node": "^20.12.0",
5454
"angular-cli-ghpages": "^2.0.0",
55-
"angular-eslint": "^19.3.0",
56-
"eslint": "^9.12.0",
55+
"angular-eslint": "^20.6.0",
56+
"eslint": "^9.39.0",
5757
"husky": "^9.1.6",
5858
"jasmine-core": "~5.1.0",
5959
"karma": "~6.4.0",
@@ -62,12 +62,12 @@
6262
"karma-jasmine": "~5.1.0",
6363
"karma-jasmine-html-reporter": "~2.1.0",
6464
"lint-staged": "^15.2.0",
65-
"ng-packagr": "^19.2.2",
65+
"ng-packagr": "^20.3.2",
6666
"prettier": "^3.6.0",
6767
"stylelint": "^16.5.0",
6868
"stylelint-config-recommended-scss": "^14.0.0",
6969
"stylelint-config-standard": "^36.0.0",
7070
"typescript": "~5.8.3",
71-
"typescript-eslint": "^8.8.1"
71+
"typescript-eslint": "^8.46.0"
7272
}
7373
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "node",
17+
"moduleResolution": "bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",
@@ -26,7 +26,7 @@
2626
"paths": {
2727
"@acrodata/code-editor": [
2828
"projects/code-editor/public-api"
29-
],
29+
]
3030
}
3131
},
3232
"angularCompilerOptions": {

0 commit comments

Comments
 (0)