Skip to content

Commit f3e3b5f

Browse files
chore: upgrade to latest Nx version supporting Angular 19
1 parent a5e8389 commit f3e3b5f

File tree

6 files changed

+4149
-2526
lines changed

6 files changed

+4149
-2526
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ Thumbs.db
4141
.nx
4242
.angular
4343
/versions.txt
44+
.cursor/rules/nx-rules.mdc
45+
.github/instructions/nx.instructions.md

apps/demo/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"buildTarget": "demo:build:development"
5757
}
5858
},
59-
"defaultConfiguration": "development"
59+
"defaultConfiguration": "development",
60+
"continuous": true
6061
},
6162
"extract-i18n": {
6263
"executor": "@angular-devkit/build-angular:extract-i18n",

migrations.json

Lines changed: 72 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,80 @@
11
{
22
"migrations": [
3+
{
4+
"version": "21.0.0-beta.8",
5+
"description": "Removes the legacy cache configuration from nx.json",
6+
"implementation": "./src/migrations/update-21-0-0/remove-legacy-cache",
7+
"package": "nx",
8+
"name": "remove-legacy-cache"
9+
},
10+
{
11+
"version": "21.0.0-beta.8",
12+
"description": "Removes the legacy cache configuration from nx.json",
13+
"implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner",
14+
"package": "nx",
15+
"name": "remove-custom-tasks-runner"
16+
},
17+
{
18+
"version": "21.0.0-beta.11",
19+
"description": "Updates release version config based on the breaking changes in Nx v21",
20+
"implementation": "./src/migrations/update-21-0-0/release-version-config-changes",
21+
"package": "nx",
22+
"name": "release-version-config-changes"
23+
},
24+
{
25+
"version": "21.0.0-beta.11",
26+
"description": "Updates release changelog config based on the breaking changes in Nx v21",
27+
"implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes",
28+
"package": "nx",
29+
"name": "release-changelog-config-changes"
30+
},
31+
{
32+
"version": "21.1.0-beta.2",
33+
"description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
34+
"implementation": "./src/migrations/update-21-1-0/add-gitignore-entry",
35+
"package": "nx",
36+
"name": "21-1-0-add-ignore-entries-for-nx-rule-files"
37+
},
38+
{
39+
"cli": "nx",
40+
"version": "21.0.0-beta.9",
41+
"description": "Replace usage of `getJestProjects` with `getJestProjectsAsync`.",
42+
"implementation": "./src/migrations/update-21-0-0/replace-getJestProjects-with-getJestProjectsAsync",
43+
"package": "@nx/jest",
44+
"name": "replace-getJestProjects-with-getJestProjectsAsync-v21"
45+
},
46+
{
47+
"version": "21.0.0-beta.10",
48+
"description": "Remove the previously deprecated and unused `tsConfig` option from the `@nx/jest:jest` executor.",
49+
"implementation": "./src/migrations/update-21-0-0/remove-tsconfig-option-from-jest-executor",
50+
"package": "@nx/jest",
51+
"name": "remove-tsconfig-option-from-jest-executor"
52+
},
53+
{
54+
"cli": "nx",
55+
"version": "20.5.0-beta.5",
56+
"requires": { "@angular/core": ">=19.2.0" },
57+
"description": "Update the @angular/cli package version to ~19.2.0.",
58+
"factory": "./src/migrations/update-20-5-0/update-angular-cli",
59+
"package": "@nx/angular",
60+
"name": "update-angular-cli-version-19-2-0"
61+
},
62+
{
63+
"cli": "nx",
64+
"version": "21.0.0-beta.3",
65+
"description": "Set the `continuous` option to `true` for continuous tasks.",
66+
"factory": "./src/migrations/update-21-0-0/set-continuous-option",
67+
"package": "@nx/angular",
68+
"name": "set-continuous-option"
69+
},
370
{
471
"cli": "nx",
5-
"version": "20.4.0-beta.1",
6-
"requires": { "@angular/core": ">=19.1.0" },
7-
"description": "Update the @angular/cli package version to ~19.1.0.",
8-
"factory": "./src/migrations/update-20-4-0/update-angular-cli",
72+
"version": "21.0.0-beta.5",
73+
"requires": { "@ngrx/store": ">=16.0.0" },
74+
"description": "Change the data persistence operator imports to '@ngrx/router-store/data-persistence'.",
75+
"factory": "./src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence",
976
"package": "@nx/angular",
10-
"name": "update-angular-cli-version-19-1-0"
77+
"name": "change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence"
1178
}
1279
]
1380
}

nx.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,5 @@
8181
"@nx/angular:component": {
8282
"style": "css"
8383
}
84-
},
85-
"useLegacyCache": true
84+
}
8685
}

package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,56 +18,56 @@
1818
"pnpm": ">=10"
1919
},
2020
"dependencies": {
21-
"@angular/animations": "19.1.4",
22-
"@angular/cdk": "19.1.2",
23-
"@angular/common": "19.1.4",
24-
"@angular/compiler": "19.1.4",
25-
"@angular/core": "19.1.4",
26-
"@angular/forms": "19.1.4",
27-
"@angular/material": "19.1.2",
28-
"@angular/platform-browser": "19.1.4",
29-
"@angular/platform-browser-dynamic": "19.1.4",
30-
"@angular/router": "19.1.4",
31-
"@ngrx/signals": "19.1.0",
32-
"@ngrx/store": "19.1.0",
33-
"@nx/angular": "20.4.0",
21+
"@angular/animations": "19.2.14",
22+
"@angular/cdk": "19.2.19",
23+
"@angular/common": "19.2.14",
24+
"@angular/compiler": "19.2.14",
25+
"@angular/core": "19.2.14",
26+
"@angular/forms": "19.2.14",
27+
"@angular/material": "19.2.19",
28+
"@angular/platform-browser": "19.2.14",
29+
"@angular/platform-browser-dynamic": "19.2.14",
30+
"@angular/router": "19.2.14",
31+
"@ngrx/signals": "^19.2.1",
32+
"@ngrx/store": "^19.2.1",
33+
"@nx/angular": "21.1.3",
3434
"core-js": "^3.40.0",
3535
"flush-promises": "^1.0.2",
3636
"rxjs": "~7.8.0",
3737
"tslib": "^2.3.0",
3838
"zone.js": "0.15.0"
3939
},
4040
"devDependencies": {
41-
"@angular-devkit/build-angular": "19.1.5",
42-
"@angular-devkit/core": "19.1.5",
43-
"@angular-devkit/schematics": "19.1.5",
44-
"@angular/cli": "~19.1.0",
45-
"@angular/compiler-cli": "19.1.4",
46-
"@angular/language-service": "19.1.4",
41+
"@angular-devkit/build-angular": "19.2.9",
42+
"@angular-devkit/core": "19.2.9",
43+
"@angular-devkit/schematics": "19.2.9",
44+
"@angular/cli": "~19.2.0",
45+
"@angular/compiler-cli": "19.2.14",
46+
"@angular/language-service": "19.2.14",
4747
"@commitlint/cli": "^19.3.0",
4848
"@commitlint/config-conventional": "^19.2.2",
4949
"@eslint/eslintrc": "^2.1.1",
5050
"@eslint/js": "~8.57.0",
51-
"@nx/devkit": "20.4.0",
52-
"@nx/eslint": "20.4.0",
53-
"@nx/eslint-plugin": "20.4.0",
54-
"@nx/jest": "20.4.0",
55-
"@nx/js": "20.4.0",
56-
"@nx/playwright": "20.4.0",
57-
"@nx/workspace": "20.4.0",
51+
"@nx/devkit": "21.1.3",
52+
"@nx/eslint": "21.1.3",
53+
"@nx/eslint-plugin": "21.1.3",
54+
"@nx/jest": "21.1.3",
55+
"@nx/js": "21.1.3",
56+
"@nx/playwright": "21.1.3",
57+
"@nx/workspace": "21.1.3",
5858
"@playwright/test": "^1.36.0",
59-
"@schematics/angular": "19.1.5",
59+
"@schematics/angular": "19.2.9",
6060
"@softarc/eslint-plugin-sheriff": "^0.15.1",
6161
"@softarc/sheriff-core": "^0.15.1",
6262
"@swc-node/register": "~1.9.1",
6363
"@swc/core": "~1.5.7",
6464
"@swc/helpers": "~0.5.11",
6565
"@types/jest": "^29.5.14",
6666
"@types/node": "18.16.9",
67-
"angular-eslint": "^19.0.2",
67+
"angular-eslint": "19.8.1",
6868
"autoprefixer": "^10.4.19",
6969
"eslint": "^9.8.0",
70-
"eslint-config-prettier": "^9.0.0",
70+
"eslint-config-prettier": "10.1.8",
7171
"eslint-plugin-playwright": "^1.6.2",
7272
"eslint-plugin-unused-imports": "^4.1.4",
7373
"fake-indexeddb": "^6.0.0",
@@ -77,8 +77,8 @@
7777
"jest-preset-angular": "^14.4.2",
7878
"jsonc-eslint-parser": "^2.4.0",
7979
"lint-staged": "^15.3.0",
80-
"ng-packagr": "19.1.2",
81-
"nx": "20.4.0",
80+
"ng-packagr": "19.2.2",
81+
"nx": "21.1.3",
8282
"postcss": "^8.4.39",
8383
"postcss-import": "^16.1.0",
8484
"postcss-preset-env": "^9.5.15",

0 commit comments

Comments
 (0)