Skip to content

Commit 2d0b411

Browse files
feat: Upgraded Nx and Angular to v17.3.0
1 parent c1fa252 commit 2d0b411

File tree

27 files changed

+5938
-4451
lines changed

27 files changed

+5938
-4451
lines changed

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/dist
33
/coverage
44
.angular
5+
6+
/.nx/cache

apps/restorecommerce-e2e/project.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
}
2222
},
2323
"lint": {
24-
"executor": "@nx/linter:eslint",
25-
"outputs": ["{options.outputFile}"],
26-
"options": {
27-
"lintFilePatterns": ["apps/restorecommerce-e2e/**/*.{js,ts}"]
28-
}
24+
"executor": "@nx/eslint:lint",
25+
"outputs": ["{options.outputFile}"]
2926
}
3027
},
3128
"tags": [],

apps/restorecommerce/project.json

+6-19
Original file line numberDiff line numberDiff line change
@@ -68,42 +68,29 @@
6868
"executor": "@angular-devkit/build-angular:dev-server",
6969
"configurations": {
7070
"production": {
71-
"browserTarget": "restorecommerce:build:production"
71+
"buildTarget": "restorecommerce:build:production"
7272
},
7373
"development": {
74-
"browserTarget": "restorecommerce:build:development"
74+
"buildTarget": "restorecommerce:build:development"
7575
}
7676
},
7777
"defaultConfiguration": "development"
7878
},
7979
"extract-i18n": {
8080
"executor": "@angular-devkit/build-angular:extract-i18n",
8181
"options": {
82-
"browserTarget": "restorecommerce:build"
82+
"buildTarget": "restorecommerce:build"
8383
}
8484
},
8585
"lint": {
86-
"executor": "@nx/linter:eslint",
87-
"outputs": ["{options.outputFile}"],
88-
"options": {
89-
"lintFilePatterns": [
90-
"apps/restorecommerce/**/*.ts",
91-
"apps/restorecommerce/**/*.html"
92-
]
93-
}
86+
"executor": "@nx/eslint:lint",
87+
"outputs": ["{options.outputFile}"]
9488
},
9589
"test": {
9690
"executor": "@nx/jest:jest",
9791
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
9892
"options": {
99-
"jestConfig": "apps/restorecommerce/jest.config.ts",
100-
"passWithNoTests": true
101-
},
102-
"configurations": {
103-
"ci": {
104-
"ci": true,
105-
"codeCoverage": true
106-
}
93+
"jestConfig": "apps/restorecommerce/jest.config.ts"
10794
}
10895
},
10996
"serve-static": {

apps/restorecommerce/src/app/app.state.module.ts

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const reducers: ActionReducerMap<IStore, Action> = !environment.production
5757
name: STORE.ngrx.storeDevtoolsModule.name,
5858
maxAge: STORE.ngrx.storeDevtoolsModule.maxAge,
5959
logOnly: environment.production,
60+
connectInZone: true,
6061
}),
6162
],
6263
})

migrations.json

+276-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,283 @@
11
{
22
"migrations": [
33
{
4-
"version": "16.0.0-0",
5-
"description": "Updates the Angular CDK to v16",
6-
"factory": "./ng-update/index#updateToV16",
4+
"cli": "nx",
5+
"version": "16.6.0-beta.6",
6+
"description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
7+
"implementation": "./src/migrations/update-15-0-0/prefix-outputs",
8+
"package": "nx",
9+
"name": "16.6.0-prefix-outputs"
10+
},
11+
{
12+
"cli": "nx",
13+
"version": "16.8.0-beta.3",
14+
"description": "Escape $ in env variables",
15+
"implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
16+
"package": "nx",
17+
"name": "16.8.0-escape-dollar-sign-env"
18+
},
19+
{
20+
"cli": "nx",
21+
"version": "17.0.0-beta.1",
22+
"description": "Updates the default cache directory to .nx/cache",
23+
"implementation": "./src/migrations/update-17-0-0/move-cache-directory",
24+
"package": "nx",
25+
"name": "17.0.0-move-cache-directory"
26+
},
27+
{
28+
"cli": "nx",
29+
"version": "17.0.0-beta.3",
30+
"description": "Use minimal config for tasksRunnerOptions",
31+
"implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options",
32+
"package": "nx",
33+
"name": "17.0.0-use-minimal-config-for-tasks-runner-options"
34+
},
35+
{
36+
"version": "17.0.0-rc.1",
37+
"description": "Migration for v17.0.0-rc.1",
38+
"implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope",
39+
"package": "nx",
40+
"name": "rm-default-collection-npm-scope"
41+
},
42+
{
43+
"cli": "nx",
44+
"version": "17.3.0-beta.6",
45+
"description": "Updates the nx wrapper.",
46+
"implementation": "./src/migrations/update-17-3-0/update-nxw",
47+
"package": "nx",
48+
"name": "17.3.0-update-nx-wrapper"
49+
},
50+
{
51+
"cli": "nx",
52+
"version": "17-2-6-beta.1",
53+
"description": "Rename workspace rules from @nx/workspace/name to @nx/workspace-name",
54+
"implementation": "./src/migrations/update-17-2-6-rename-workspace-rules/rename-workspace-rules",
55+
"package": "@nx/eslint-plugin",
56+
"name": "update-17-2-6-rename-workspace-rules"
57+
},
58+
{
59+
"cli": "nx",
60+
"version": "16.8.0-beta.4",
61+
"description": "Update to Cypress v13. Most noteable change is video recording is off by default. This migration will only update if the workspace is already on Cypress v12. https://docs.cypress.io/guides/references/migration-guide#Migrating-to-Cypress-130",
62+
"implementation": "./src/migrations/update-16-8-0/cypress-13",
63+
"package": "@nx/cypress",
64+
"name": "update-16-8-0-cypress-13"
65+
},
66+
{
67+
"version": "17.1.0-beta.2",
68+
"description": "Move jest executor options to nx.json targetDefaults",
69+
"implementation": "./src/migrations/update-17-1-0/move-options-to-target-defaults",
70+
"package": "@nx/jest",
71+
"name": "move-options-to-target-defaults"
72+
},
73+
{
74+
"cli": "nx",
75+
"version": "16.6.0-beta.0",
76+
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
77+
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps",
78+
"package": "@nx/angular",
79+
"name": "explicitly-set-projects-to-update-buildable-deps"
80+
},
81+
{
82+
"cli": "nx",
83+
"version": "16.7.0-beta.6",
84+
"requires": {
85+
"@angular/core": ">=16.2.0"
86+
},
87+
"description": "Update the @angular/cli package version to ~16.2.0.",
88+
"factory": "./src/migrations/update-16-7-0/update-angular-cli",
89+
"package": "@nx/angular",
90+
"name": "update-angular-cli-version-16-2-0"
91+
},
92+
{
93+
"cli": "nx",
94+
"version": "17.1.0-beta.5",
95+
"requires": {
96+
"@angular/core": ">=17.0.0"
97+
},
98+
"description": "Update the @angular/cli package version to ~17.0.0.",
99+
"factory": "./src/migrations/update-17-1-0/update-angular-cli",
100+
"package": "@nx/angular",
101+
"name": "update-angular-cli-version-17-0-0"
102+
},
103+
{
104+
"cli": "nx",
105+
"version": "17.1.0-beta.5",
106+
"requires": {
107+
"@angular/core": ">=17.0.0"
108+
},
109+
"description": "Rename 'browserTarget' to 'buildTarget'.",
110+
"factory": "./src/migrations/update-17-1-0/browser-target-to-build-target",
111+
"package": "@nx/angular",
112+
"name": "rename-browser-target-to-build-target"
113+
},
114+
{
115+
"cli": "nx",
116+
"version": "17.1.0-beta.5",
117+
"requires": {
118+
"@angular/core": ">=17.0.0"
119+
},
120+
"description": "Replace usages of '@nguniversal/builders' with '@angular-devkit/build-angular'.",
121+
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-builders",
122+
"package": "@nx/angular",
123+
"name": "replace-nguniversal-builders"
124+
},
125+
{
126+
"cli": "nx",
127+
"version": "17.1.0-beta.5",
128+
"requires": {
129+
"@angular/core": ">=17.0.0"
130+
},
131+
"description": "Replace usages of '@nguniversal/' packages with '@angular/ssr'.",
132+
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-engines",
133+
"package": "@nx/angular",
134+
"name": "replace-nguniversal-engines"
135+
},
136+
{
137+
"cli": "nx",
138+
"version": "17.1.0-beta.5",
139+
"requires": {
140+
"@angular/core": ">=17.0.0"
141+
},
142+
"description": "Replace the deep imports from 'zone.js/dist/zone' and 'zone.js/dist/zone-testing' with 'zone.js' and 'zone.js/testing'.",
143+
"factory": "./src/migrations/update-17-1-0/update-zone-js-deep-import",
144+
"package": "@nx/angular",
145+
"name": "update-zone-js-deep-import"
146+
},
147+
{
148+
"cli": "nx",
149+
"version": "17.2.0-beta.2",
150+
"description": "Rename '@nx/angular:webpack-dev-server' executor to '@nx/angular:dev-server'",
151+
"factory": "./src/migrations/update-17-2-0/rename-webpack-dev-server",
152+
"package": "@nx/angular",
153+
"name": "rename-webpack-dev-server-executor"
154+
},
155+
{
156+
"cli": "nx",
157+
"version": "17.3.0-beta.10",
158+
"requires": {
159+
"@angular/core": ">=17.1.0"
160+
},
161+
"description": "Update the @angular/cli package version to ~17.1.0.",
162+
"factory": "./src/migrations/update-17-3-0/update-angular-cli",
163+
"package": "@nx/angular",
164+
"name": "update-angular-cli-version-17-1-0"
165+
},
166+
{
167+
"cli": "nx",
168+
"version": "17.3.0-beta.10",
169+
"requires": {
170+
"@angular/core": ">=17.1.0"
171+
},
172+
"description": "Add 'browser-sync' as dev dependency when '@angular-devkit/build-angular:ssr-dev-server' or '@nx/angular:module-federation-dev-ssr' is used.",
173+
"factory": "./src/migrations/update-17-3-0/add-browser-sync-dependency",
174+
"package": "@nx/angular",
175+
"name": "add-browser-sync-dependency"
176+
},
177+
{
178+
"cli": "nx",
179+
"version": "17.3.0-beta.10",
180+
"requires": {
181+
"@angular/core": ">=17.1.0"
182+
},
183+
"description": "Add 'autoprefixer' as dev dependency when '@nx/angular:ng-packagr-lite' or '@nx/angular:package` is used.",
184+
"factory": "./src/migrations/update-17-3-0/add-autoprefixer-dependency",
185+
"package": "@nx/angular",
186+
"name": "add-autoprefixer-dependency"
187+
},
188+
{
189+
"cli": "nx",
190+
"version": "16.6.0-beta.0",
191+
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
192+
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps",
193+
"package": "@nx/js",
194+
"name": "explicitly-set-projects-to-update-buildable-deps"
195+
},
196+
{
197+
"cli": "nx",
198+
"version": "16.8.2-beta.0",
199+
"description": "Remove invalid options (strict, noInterop) for ES6 type modules.",
200+
"factory": "./src/migrations/update-16-8-2/update-swcrc",
201+
"package": "@nx/js",
202+
"name": "16-8-2-update-swcrc"
203+
},
204+
{
205+
"cli": "nx",
206+
"version": "17.0.2",
207+
"description": "Remove deprecated build options",
208+
"implementation": "./src/migrations/update-17-0-0/remove-deprecated-build-options",
209+
"package": "@nx/js",
210+
"name": "update-17-0-0-remove-deprecated-build-options"
211+
},
212+
{
213+
"version": "16.8.0",
214+
"description": "update-16-8-0-add-ignored-files",
215+
"implementation": "./src/migrations/update-16-8-0-add-ignored-files/update-16-8-0-add-ignored-files",
216+
"package": "@nx/eslint",
217+
"name": "update-16-8-0-add-ignored-files"
218+
},
219+
{
220+
"version": "17.0.0-beta.7",
221+
"description": "update-17-0-0-rename-to-eslint",
222+
"implementation": "./src/migrations/update-17-0-0-rename-to-eslint/update-17-0-0-rename-to-eslint",
223+
"package": "@nx/eslint",
224+
"name": "update-17-0-0-rename-to-eslint"
225+
},
226+
{
227+
"version": "17.1.0-beta.1",
228+
"description": "Updates for @typescript-utils/utils v6.9.1+",
229+
"implementation": "./src/migrations/update-17-1-0/update-typescript-eslint",
230+
"package": "@nx/eslint",
231+
"name": "update-typescript-eslint"
232+
},
233+
{
234+
"version": "17.2.0-beta.0",
235+
"description": "Simplify eslintFilePatterns",
236+
"implementation": "./src/migrations/update-17-2-0/simplify-eslint-patterns",
237+
"package": "@nx/eslint",
238+
"name": "simplify-eslint-patterns"
239+
},
240+
{
241+
"version": "17.2.9",
242+
"description": "Move executor options to target defaults",
243+
"implementation": "./src/migrations/update-17-2-9/move-options-to-target-defaults",
244+
"package": "@nx/eslint",
245+
"name": "move-options-to-target-defaults"
246+
},
247+
{
248+
"version": "17.0.0",
249+
"description": "Angular v17 introduces a new control flow syntax that uses the @ and } characters. This migration replaces the existing usages with their corresponding HTML entities.",
250+
"factory": "./migrations/block-template-entities/bundle",
251+
"package": "@angular/core",
252+
"name": "block-template-entities"
253+
},
254+
{
255+
"version": "17.0.0",
256+
"description": "CompilerOption.useJit and CompilerOption.missingTranslation are unused under Ivy. This migration removes their usage",
257+
"factory": "./migrations/compiler-options/bundle",
258+
"package": "@angular/core",
259+
"name": "migration-v17-compiler-options"
260+
},
261+
{
262+
"version": "17.0.0",
263+
"description": "Updates `TransferState`, `makeStateKey`, `StateKey` imports from `@angular/platform-browser` to `@angular/core`.",
264+
"factory": "./migrations/transfer-state/bundle",
265+
"package": "@angular/core",
266+
"name": "migration-transfer-state"
267+
},
268+
{
269+
"version": "17.0.0-0",
270+
"description": "Updates the Angular CDK to v17",
271+
"factory": "./ng-update/index#updateToV17",
7272
"package": "@angular/cdk",
8-
"name": "migration-v16"
273+
"name": "migration-v17"
274+
},
275+
{
276+
"description": "The road to v17-beta.1",
277+
"version": "17.0.0-beta",
278+
"factory": "./17_0_0-beta/index",
279+
"package": "@ngrx/store-devtools",
280+
"name": "ngrx-store-devtools-migration-17-0-0-beta"
9281
}
10282
]
11283
}

0 commit comments

Comments
 (0)