Skip to content

Commit 63eb967

Browse files
authored
chore!: migrate to Angular 15 (#285)
# Dependencies - Update to Node.js 16.19.0 - Update to Nx 15.3 - Update to Angular 15.0 - Update to Zone.js 0.12.0 - Update to tslib 2.4.1 - Update to TypeScript 4.8 - Remove unused Cypress dependencies # Build - Align configurations with Nx 15.3 defaults - Remove NGCC postinstall task BREAKING CHANGE: - Require `@angular/core` 15.x - Require `@angular/router` 15.x - Require `@ngrx/component-store` 15.x
1 parent 4621b72 commit 63eb967

File tree

9 files changed

+3485
-3573
lines changed

9 files changed

+3485
-3573
lines changed

.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@
3434
"files": ["*.js", "*.jsx"],
3535
"extends": ["plugin:@nrwl/nx/javascript"],
3636
"rules": {}
37+
},
38+
{
39+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
40+
"env": {
41+
"jest": true
42+
},
43+
"rules": {}
3744
}
3845
]
3946
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.18.0
1+
16.19.0

nx.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,31 @@
2525
},
2626
"targetDefaults": {
2727
"build": {
28-
"dependsOn": ["^build"]
28+
"dependsOn": ["^build"],
29+
"inputs": ["production", "^production"]
30+
},
31+
"test": {
32+
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
33+
},
34+
"e2e": {
35+
"inputs": ["default", "^production"]
36+
},
37+
"lint": {
38+
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
2939
}
3040
},
41+
"namedInputs": {
42+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
43+
"production": [
44+
"default",
45+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
46+
"!{projectRoot}/tsconfig.spec.json",
47+
"!{projectRoot}/jest.config.[jt]s",
48+
"!{projectRoot}/.eslintrc.json",
49+
"!{projectRoot}/**/*.spec.[jt]s"
50+
],
51+
"sharedGlobals": []
52+
},
3153
"generators": {
3254
"@nrwl/angular:application": {
3355
"style": "css",

package.json

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,70 +2,68 @@
22
"name": "workspace",
33
"private": true,
44
"scripts": {
5-
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2020 browser module main",
5+
"postinstall": "node ./decorate-angular-cli.js",
66
"build": "nx run-many --target=build --all",
77
"ci": "yarn lint && yarn test && yarn build",
88
"lint": "nx workspace-lint && nx run-many --target=lint --all --max-warnings=0",
99
"nx": "nx",
1010
"test": "nx run-many --target=test --all"
1111
},
1212
"engines": {
13-
"node": "16.18.0",
13+
"node": "16.19.0",
1414
"yarn": "1.22.19"
1515
},
1616
"volta": {
17-
"node": "16.18.0",
17+
"node": "16.19.0",
1818
"yarn": "1.22.19"
1919
},
2020
"dependencies": {
21-
"@angular/common": "14.0.7",
22-
"@angular/compiler": "14.0.7",
23-
"@angular/core": "14.0.7",
24-
"@angular/platform-browser": "14.0.7",
25-
"@angular/platform-browser-dynamic": "14.0.7",
26-
"@angular/router": "14.0.7",
27-
"@ngrx/component-store": "14.0.2",
28-
"@ngrx/router-store": "14.0.2",
29-
"@ngrx/store": "14.0.2",
30-
"@nrwl/angular": "14.4.3",
21+
"@angular/common": "15.0.4",
22+
"@angular/compiler": "15.0.4",
23+
"@angular/core": "15.0.4",
24+
"@angular/platform-browser": "15.0.4",
25+
"@angular/platform-browser-dynamic": "15.0.4",
26+
"@angular/router": "15.0.4",
27+
"@ngrx/component-store": "15.0.0",
28+
"@ngrx/router-store": "15.0.0",
29+
"@ngrx/store": "15.0.0",
30+
"@nrwl/angular": "15.3.3",
3131
"rxjs": "7.4.0",
32-
"tslib": "2.3.1",
33-
"zone.js": "0.11.8"
32+
"tslib": "2.4.1",
33+
"zone.js": "0.12.0"
3434
},
3535
"devDependencies": {
36-
"@angular-devkit/build-angular": "14.0.7",
37-
"@angular-eslint/eslint-plugin": "14.0.4",
38-
"@angular-eslint/eslint-plugin-template": "14.0.4",
39-
"@angular-eslint/template-parser": "14.0.4",
40-
"@angular/cli": "14.0.7",
41-
"@angular/compiler-cli": "14.0.7",
42-
"@angular/language-service": "14.0.7",
43-
"@ngrx/eslint-plugin": "14.0.2",
44-
"@nrwl/cli": "14.4.3",
45-
"@nrwl/cypress": "14.4.3",
46-
"@nrwl/eslint-plugin-nx": "14.4.3",
47-
"@nrwl/jest": "14.4.3",
48-
"@nrwl/linter": "14.4.3",
49-
"@nrwl/workspace": "14.4.3",
50-
"@types/jest": "27.4.1",
36+
"@angular-devkit/build-angular": "15.0.4",
37+
"@angular-eslint/eslint-plugin": "15.0.0",
38+
"@angular-eslint/eslint-plugin-template": "15.0.0",
39+
"@angular-eslint/template-parser": "15.0.0",
40+
"@angular/cli": "15.0.4",
41+
"@angular/compiler-cli": "15.0.4",
42+
"@angular/language-service": "15.0.4",
43+
"@ngrx/eslint-plugin": "15.0.0",
44+
"@nrwl/cli": "15.3.3",
45+
"@nrwl/eslint-plugin-nx": "15.3.3",
46+
"@nrwl/jest": "15.3.3",
47+
"@nrwl/linter": "15.3.3",
48+
"@nrwl/workspace": "15.3.3",
49+
"@types/jest": "28.1.8",
5150
"@types/node": "16.11.7",
52-
"@typescript-eslint/eslint-plugin": "5.40.1",
53-
"@typescript-eslint/parser": "5.40.1",
54-
"cypress": "9.7.0",
51+
"@typescript-eslint/eslint-plugin": "5.36.1",
52+
"@typescript-eslint/parser": "5.36.1",
5553
"eslint": "8.15.0",
5654
"eslint-config-prettier": "8.1.0",
57-
"eslint-plugin-cypress": "2.12.1",
58-
"jest": "27.5.1",
59-
"jest-preset-angular": "11.1.2",
60-
"ng-packagr": "14.0.4",
61-
"nx": "14.4.3",
55+
"jest": "28.1.3",
56+
"jest-environment-jsdom": "28.1.1",
57+
"jest-preset-angular": "12.2.3",
58+
"ng-packagr": "15.0.3",
59+
"nx": "15.3.3",
6260
"postcss": "8.4.18",
6361
"postcss-import": "14.1.0",
6462
"postcss-preset-env": "7.5.0",
6563
"postcss-url": "10.1.3",
6664
"prettier": "2.7.1",
67-
"ts-jest": "27.1.4",
68-
"ts-node": "10.8.2",
69-
"typescript": "4.7.4"
65+
"ts-jest": "28.0.8",
66+
"ts-node": "10.9.1",
67+
"typescript": "4.8.4"
7068
}
7169
}

packages/router-component-store/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"description": "An Angular Router-connecting NgRx component store.",
55
"license": "MIT",
66
"peerDependencies": {
7-
"@angular/core": "^14.0.0",
8-
"@angular/router": "^14.0.0",
9-
"@ngrx/component-store": "^14.0.0",
7+
"@angular/core": "^15.0.0",
8+
"@angular/router": "^15.0.0",
9+
"@ngrx/component-store": "^15.0.0",
1010
"rxjs": "^7.4.0"
1111
},
1212
"dependencies": {
13-
"tslib": "^2.3.0"
13+
"tslib": "^2.4.0"
1414
},
1515
"keywords": [
1616
"ngrx",

packages/router-component-store/project.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2+
"name": "router-component-store",
23
"$schema": "../../node_modules/nx/schemas/project-schema.json",
34
"projectType": "library",
45
"sourceRoot": "packages/router-component-store/src",
56
"prefix": "ngw",
67
"targets": {
78
"build": {
89
"executor": "@nrwl/angular:package",
9-
"outputs": ["dist/packages/router-component-store"],
10+
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
1011
"options": {
1112
"project": "packages/router-component-store/ng-package.json"
1213
},
@@ -22,7 +23,7 @@
2223
},
2324
"test": {
2425
"executor": "@nrwl/jest:jest",
25-
"outputs": ["coverage/packages/router-component-store"],
26+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
2627
"options": {
2728
"jestConfig": "packages/router-component-store/jest.config.ts",
2829
"passWithNoTests": true

packages/router-component-store/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"compilerOptions": {
17-
"target": "es2020",
17+
"target": "es2022",
1818
"forceConsistentCasingInFileNames": true,
1919
"strict": true,
2020
"noImplicitOverride": true,

workspace.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)