Skip to content

Commit 2312658

Browse files
authored
core: update to Angular 18 (#92)
1 parent 1a72f69 commit 2312658

File tree

5 files changed

+2926
-2980
lines changed

5 files changed

+2926
-2980
lines changed

angular.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,15 @@
5050
"prefix": "app",
5151
"architect": {
5252
"build": {
53-
"builder": "@angular-devkit/build-angular:browser",
53+
"builder": "@angular-devkit/build-angular:application",
5454
"options": {
55-
"outputPath": "dist/lib-workspace",
55+
"outputPath": {
56+
"base": "dist/lib-workspace"
57+
},
5658
"index": "projects/lib-workspace/src/index.html",
57-
"main": "projects/lib-workspace/src/main.ts",
58-
"polyfills": "projects/lib-workspace/src/polyfills.ts",
59+
"polyfills": [
60+
"projects/lib-workspace/src/polyfills.ts"
61+
],
5962
"tsConfig": "projects/lib-workspace/tsconfig.app.json",
6063
"inlineStyleLanguage": "scss",
6164
"assets": [
@@ -65,7 +68,8 @@
6568
"styles": [
6669
"projects/lib-workspace/src/styles.scss"
6770
],
68-
"scripts": []
71+
"scripts": [],
72+
"browser": "projects/lib-workspace/src/main.ts"
6973
},
7074
"configurations": {
7175
"production": {
@@ -90,9 +94,7 @@
9094
"outputHashing": "all"
9195
},
9296
"development": {
93-
"buildOptimizer": false,
9497
"optimization": false,
95-
"vendorChunk": true,
9698
"extractLicenses": false,
9799
"sourceMap": true,
98100
"namedChunks": true

package.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,50 +20,51 @@
2020
},
2121
"private": false,
2222
"dependencies": {
23-
"@angular/animations": "^17.3.12",
24-
"@angular/cdk": "^17.3.10",
25-
"@angular/common": "^17.3.12",
26-
"@angular/compiler": "^17.3.12",
27-
"@angular/core": "^17.3.12",
28-
"@angular/forms": "^17.3.12",
29-
"@angular/material": "^17.3.10",
30-
"@angular/platform-browser": "^17.3.12",
31-
"@angular/platform-browser-dynamic": "^17.3.12",
32-
"@angular/router": "^17.3.12",
23+
"@angular/animations": "^18.2.13",
24+
"@angular/cdk": "^18.2.14",
25+
"@angular/common": "^18.2.13",
26+
"@angular/compiler": "^18.2.13",
27+
"@angular/core": "^18.2.13",
28+
"@angular/forms": "^18.2.13",
29+
"@angular/material": "^18.2.14",
30+
"@angular/platform-browser": "^18.2.13",
31+
"@angular/platform-browser-dynamic": "^18.2.13",
32+
"@angular/router": "^18.2.13",
3333
"@ng-icons/core": "24",
3434
"@ng-icons/material-icons": "24",
3535
"date-fns": "^2.29.3",
3636
"material-icons": "^1.13.1",
37-
"postcss": "^8.4.32",
38-
"rxjs": "^7.8.1",
39-
"tslib": "^2.4.0",
40-
"zone.js": "~0.14.10"
37+
"postcss": "^8.5.6",
38+
"rxjs": "^7.8.2",
39+
"tslib": "^2.8.1",
40+
"zone.js": "^0.14.10"
4141
},
4242
"devDependencies": {
43-
"@angular-devkit/build-angular": "^17.3.11",
44-
"@angular-eslint/builder": "^17.5.3",
45-
"@angular-eslint/eslint-plugin": "^17.5.3",
46-
"@angular-eslint/eslint-plugin-template": "^17.5.3",
47-
"@angular-eslint/schematics": "^17.5.3",
48-
"@angular-eslint/template-parser": "^17.5.3",
49-
"@angular/cli": "^17.3.11",
50-
"@angular/compiler-cli": "^17.3.12",
43+
"@angular-devkit/build-angular": "^18.2.20",
44+
"@angular-eslint/builder": "^18.4.3",
45+
"@angular-eslint/eslint-plugin": "^18.4.3",
46+
"@angular-eslint/eslint-plugin-template": "^18.4.3",
47+
"@angular-eslint/schematics": "^18.4.3",
48+
"@angular-eslint/template-parser": "^18.4.3",
49+
"@angular/cli": "^18.2.20",
50+
"@angular/compiler-cli": "^18.2.13",
5151
"@types/jasmine": "~5.1.4",
52-
"@types/node": "^18.19.3",
53-
"@typescript-eslint/eslint-plugin": "^7.2.0",
54-
"@typescript-eslint/parser": "^7.2.0",
52+
"@typescript-eslint/eslint-plugin": "^8.35.0",
53+
"@typescript-eslint/parser": "^8.35.0",
54+
"@typescript-eslint/types": "^8.35.0",
55+
"@typescript-eslint/utils": "^8.35.0",
5556
"autoprefixer": "^10.4.16",
56-
"eslint": "^8.57.0",
57+
"eslint": "^9.29.0",
5758
"jasmine-core": "~5.1.1",
5859
"karma": "~6.3.0",
5960
"karma-chrome-launcher": "~3.2.0",
6061
"karma-coverage": "~2.2.1",
6162
"karma-jasmine": "~5.1.0",
6263
"karma-jasmine-html-reporter": "~2.1.0",
63-
"ng-packagr": "^17.3.0",
64+
"ng-packagr": "^18.2.1",
6465
"prettier": "^2.8.3",
6566
"prettier-eslint": "^15.0.1",
6667
"sass": "^1.69.5",
6768
"typescript": "~5.4.5"
6869
}
69-
}
70+
}

projects/lib-workspace/src/styles.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
@include fsc.core();
1111
@include fsc.roboto();
1212

13-
$my-typography: mat.define-typography-config(
13+
$my-typography: mat.m2-define-typography-config(
1414
$font-family: 'Roboto-local',
1515
);
1616

1717
// Define a dark theme
18-
$dark-theme: mat.define-dark-theme(
18+
$dark-theme: mat.m2-define-dark-theme(
1919
(
2020
color: (
21-
primary: mat.define-palette(palettes.$md-primary),
22-
accent: mat.define-palette(palettes.$md-accent),
21+
primary: mat.m2-define-palette(palettes.$md-primary),
22+
accent: mat.m2-define-palette(palettes.$md-accent),
2323
),
2424
// Only include `typography` and `density` in the default dark theme.
2525
typography: $my-typography,
@@ -28,11 +28,11 @@ $dark-theme: mat.define-dark-theme(
2828
);
2929

3030
// Define a light theme
31-
$light-theme: mat.define-light-theme(
31+
$light-theme: mat.m2-define-light-theme(
3232
(
3333
color: (
34-
primary: mat.define-palette(palettes.$md-primary),
35-
accent: mat.define-palette(palettes.$md-accent),
34+
primary: mat.m2-define-palette(palettes.$md-primary),
35+
accent: mat.m2-define-palette(palettes.$md-accent),
3636
),
3737
)
3838
);

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"baseUrl": "./",
66
"outDir": "./dist/out-tsc",
77
"forceConsistentCasingInFileNames": true,
8+
"esModuleInterop": true,
89
"strict": true,
910
"noImplicitOverride": true,
1011
"noPropertyAccessFromIndexSignature": true,
@@ -17,7 +18,6 @@
1718
]
1819
},
1920
"declaration": false,
20-
"downlevelIteration": true,
2121
"experimentalDecorators": true,
2222
"moduleResolution": "node",
2323
"importHelpers": true,

0 commit comments

Comments
 (0)