Skip to content

Commit c931f21

Browse files
committed
chore: clean codes
1 parent feef121 commit c931f21

File tree

2 files changed

+79
-216
lines changed

2 files changed

+79
-216
lines changed

ui/migrations.json

Lines changed: 47 additions & 184 deletions
Original file line numberDiff line numberDiff line change
@@ -1,224 +1,87 @@
11
{
22
"migrations": [
33
{
4-
"cli": "nx",
5-
"version": "19.2.0-beta.2",
6-
"description": "Updates the default workspace data directory to .nx/workspace-data",
7-
"implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory",
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",
87
"package": "nx",
9-
"name": "19-2-0-move-graph-cache-directory"
8+
"name": "remove-legacy-cache"
109
},
1110
{
12-
"cli": "nx",
13-
"version": "19.2.2-beta.0",
14-
"description": "Updates the nx wrapper.",
15-
"implementation": "./src/migrations/update-17-3-0/update-nxw",
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",
1614
"package": "nx",
17-
"name": "19-2-2-update-nx-wrapper"
15+
"name": "remove-custom-tasks-runner"
1816
},
1917
{
20-
"version": "19.2.4-beta.0",
21-
"description": "Set project name in nx.json explicitly",
22-
"implementation": "./src/migrations/update-19-2-4/set-project-name",
23-
"x-repair-skip": true,
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",
2421
"package": "nx",
25-
"name": "19-2-4-set-project-name"
22+
"name": "release-version-config-changes"
2623
},
2724
{
28-
"version": "20.0.0-beta.7",
29-
"description": "Migration for v20.0.0-beta.7",
30-
"implementation": "./src/migrations/update-20-0-0/move-use-daemon-process",
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",
3128
"package": "nx",
32-
"name": "move-use-daemon-process"
29+
"name": "release-changelog-config-changes"
3330
},
3431
{
35-
"version": "20.0.1",
36-
"description": "Set `useLegacyCache` to true for migrating workspaces",
37-
"implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
38-
"x-repair-skip": true,
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",
3935
"package": "nx",
40-
"name": "use-legacy-cache"
36+
"name": "21-1-0-add-ignore-entries-for-nx-rule-files"
4137
},
4238
{
43-
"cli": "nx",
44-
"version": "19.6.0-beta.4",
45-
"description": "Update ciWebServerCommand to use static serve for the application.",
46-
"implementation": "./src/migrations/update-19-6-0/update-ci-webserver-for-static-serve",
39+
"version": "21.0.0-beta.10",
40+
"description": "Removes the `tsConfig` and `copyFiles` options from the `@nx/cypress:cypress` executor.",
41+
"implementation": "./src/migrations/update-21-0-0/remove-tsconfig-and-copy-files-options-from-cypress-executor",
4742
"package": "@nx/cypress",
48-
"name": "update-19-6-0-update-ci-webserver-for-vite"
49-
},
50-
{
51-
"cli": "nx",
52-
"version": "19.6.0-beta.0",
53-
"description": "Update workspace to use Storybook v8",
54-
"implementation": "./src/migrations/update-19-6-0/update-sb-8",
55-
"package": "@nx/storybook",
56-
"name": "update-19-6-0-add-nx-packages"
43+
"name": "remove-tsconfig-and-copy-files-options-from-cypress-executor"
5744
},
5845
{
5946
"cli": "nx",
60-
"version": "20.0.0-beta.5",
61-
"description": "replace getJestProjects with getJestProjectsAsync",
62-
"implementation": "./src/migrations/update-20-0-0/replace-getJestProjects-with-getJestProjectsAsync",
47+
"version": "21.0.0-beta.9",
48+
"description": "Replace usage of `getJestProjects` with `getJestProjectsAsync`.",
49+
"implementation": "./src/migrations/update-21-0-0/replace-getJestProjects-with-getJestProjectsAsync",
6350
"package": "@nx/jest",
64-
"name": "replace-getJestProjects-with-getJestProjectsAsync"
65-
},
66-
{
67-
"cli": "nx",
68-
"version": "19.2.1-beta.0",
69-
"requires": { "@angular-eslint/eslint-plugin": ">=18.0.0" },
70-
"description": "Installs the '@typescript-eslint/utils' package when having installed '@angular-eslint/eslint-plugin' or '@angular-eslint/eslint-plugin-template' with version >=18.0.0.",
71-
"factory": "./src/migrations/update-19-2-1/add-typescript-eslint-utils",
72-
"package": "@nx/angular",
73-
"name": "add-typescript-eslint-utils"
74-
},
75-
{
76-
"cli": "nx",
77-
"version": "19.5.0-beta.1",
78-
"requires": { "@angular/core": ">=18.1.0" },
79-
"description": "Update the @angular/cli package version to ~18.1.0.",
80-
"factory": "./src/migrations/update-19-5-0/update-angular-cli",
81-
"package": "@nx/angular",
82-
"name": "update-angular-cli-version-18-1-0"
83-
},
84-
{
85-
"cli": "nx",
86-
"version": "19.6.0-beta.4",
87-
"description": "Ensure Module Federation DTS is turned off by default.",
88-
"factory": "./src/migrations/update-19-6-0/turn-off-dts-by-default",
89-
"package": "@nx/angular",
90-
"name": "update-19-6-0"
91-
},
92-
{
93-
"cli": "nx",
94-
"version": "19.6.0-beta.7",
95-
"requires": { "@angular/core": ">=18.2.0" },
96-
"description": "Update the @angular/cli package version to ~18.2.0.",
97-
"factory": "./src/migrations/update-19-6-0/update-angular-cli",
98-
"package": "@nx/angular",
99-
"name": "update-angular-cli-version-18-2-0"
100-
},
101-
{
102-
"cli": "nx",
103-
"version": "19.6.1-beta.0",
104-
"description": "Ensure Target Defaults are set correctly for Module Federation.",
105-
"factory": "./src/migrations/update-19-6-1/ensure-depends-on-for-mf",
106-
"package": "@nx/angular",
107-
"name": "update-19-6-1-ensure-module-federation-target-defaults"
108-
},
109-
{
110-
"cli": "nx",
111-
"version": "20.2.0-beta.2",
112-
"description": "Update the ModuleFederationConfig import use @nx/module-federation.",
113-
"factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package",
114-
"package": "@nx/angular",
115-
"name": "update-20-2-0-update-module-federation-config-import"
51+
"name": "replace-getJestProjects-with-getJestProjectsAsync-v21"
11652
},
11753
{
118-
"cli": "nx",
119-
"version": "20.2.0-beta.2",
120-
"description": "Update the withModuleFederation import use @nx/module-federation/angular.",
121-
"factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package",
122-
"package": "@nx/angular",
123-
"name": "update-20-2-0-update-with-module-federation-import"
124-
},
125-
{
126-
"cli": "nx",
127-
"version": "20.2.0-beta.5",
128-
"requires": { "@angular/core": ">=19.0.0" },
129-
"description": "Update the @angular/cli package version to ~19.0.0.",
130-
"factory": "./src/migrations/update-20-2-0/update-angular-cli",
131-
"package": "@nx/angular",
132-
"name": "update-angular-cli-version-19-0-0"
133-
},
134-
{
135-
"cli": "nx",
136-
"version": "20.2.0-beta.5",
137-
"requires": { "@angular/core": ">=19.0.0" },
138-
"description": "Add the '@angular/localize/init' polyfill to the 'polyfills' option of targets using esbuild-based executors.",
139-
"factory": "./src/migrations/update-20-2-0/add-localize-polyfill-to-targets",
140-
"package": "@nx/angular",
141-
"name": "add-localize-polyfill-to-targets"
142-
},
143-
{
144-
"cli": "nx",
145-
"version": "20.2.0-beta.5",
146-
"requires": { "@angular/core": ">=19.0.0" },
147-
"description": "Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected.",
148-
"factory": "./src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point",
149-
"package": "@nx/angular",
150-
"name": "update-angular-ssr-imports-to-use-node-entry-point"
151-
},
152-
{
153-
"cli": "nx",
154-
"version": "20.2.0-beta.6",
155-
"requires": { "@angular/core": ">=19.0.0" },
156-
"description": "Disable the Angular ESLint prefer-standalone rule if not set.",
157-
"factory": "./src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone",
158-
"package": "@nx/angular",
159-
"name": "disable-angular-eslint-prefer-standalone"
54+
"version": "21.0.0-beta.10",
55+
"description": "Remove the previously deprecated and unused `tsConfig` option from the `@nx/jest:jest` executor.",
56+
"implementation": "./src/migrations/update-21-0-0/remove-tsconfig-option-from-jest-executor",
57+
"package": "@nx/jest",
58+
"name": "remove-tsconfig-option-from-jest-executor"
16059
},
16160
{
16261
"cli": "nx",
163-
"version": "20.2.0-beta.8",
164-
"requires": { "@angular/core": ">=19.0.0" },
165-
"description": "Remove Angular ESLint rules that were removed in v19.0.0.",
166-
"factory": "./src/migrations/update-20-2-0/remove-angular-eslint-rules",
62+
"version": "20.4.0-beta.1",
63+
"requires": { "@angular/core": ">=19.1.0" },
64+
"description": "Update the @angular/cli package version to ~19.1.0.",
65+
"factory": "./src/migrations/update-20-4-0/update-angular-cli",
16766
"package": "@nx/angular",
168-
"name": "remove-angular-eslint-rules"
67+
"name": "update-angular-cli-version-19-1-0"
16968
},
17069
{
17170
"cli": "nx",
172-
"version": "20.2.0-beta.8",
173-
"requires": { "@angular/core": ">=19.0.0" },
174-
"description": "Remove the deprecated 'tailwindConfig' option from ng-packagr executors. Tailwind CSS configurations located at the project or workspace root will be picked up automatically.",
175-
"factory": "./src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors",
71+
"version": "20.5.0-beta.5",
72+
"requires": { "@angular/core": ">=19.2.0" },
73+
"description": "Update the @angular/cli package version to ~19.2.0.",
74+
"factory": "./src/migrations/update-20-5-0/update-angular-cli",
17675
"package": "@nx/angular",
177-
"name": "remove-tailwind-config-from-ng-packagr-executors"
76+
"name": "update-angular-cli-version-19-2-0"
17877
},
17978
{
18079
"cli": "nx",
181-
"version": "20.3.0-beta.2",
182-
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
183-
"factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package",
80+
"version": "21.0.0-beta.3",
81+
"description": "Set the `continuous` option to `true` for continuous tasks.",
82+
"factory": "./src/migrations/update-21-0-0/set-continuous-option",
18483
"package": "@nx/angular",
185-
"name": "ensure-nx-module-federation-package"
186-
},
187-
{
188-
"version": "19.0.0",
189-
"description": "Updates non-standalone Directives, Component and Pipes to 'standalone:false' and removes 'standalone:true' from those who are standalone",
190-
"factory": "./bundles/explicit-standalone-flag#migrate",
191-
"package": "@angular/core",
192-
"name": "explicit-standalone-flag"
193-
},
194-
{
195-
"version": "19.0.0",
196-
"description": "Updates ExperimentalPendingTasks to PendingTasks",
197-
"factory": "./bundles/pending-tasks#migrate",
198-
"package": "@angular/core",
199-
"name": "pending-tasks"
200-
},
201-
{
202-
"version": "19.0.0",
203-
"description": "Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`.",
204-
"factory": "./bundles/provide-initializer#migrate",
205-
"optional": true,
206-
"package": "@angular/core",
207-
"name": "provide-initializer"
208-
},
209-
{
210-
"version": "19.0.0-0",
211-
"description": "Updates Angular Material to v19",
212-
"factory": "./ng-update/index_bundled#updateToV19",
213-
"package": "@angular/material",
214-
"name": "migration-v19"
215-
},
216-
{
217-
"version": "19.0.0-0",
218-
"description": "Updates the Angular CDK to v19",
219-
"factory": "./ng-update/index#updateToV19",
220-
"package": "@angular/cdk",
221-
"name": "migration-v19"
84+
"name": "set-continuous-option"
22285
}
22386
]
22487
}

ui/package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,48 +14,48 @@
1414
},
1515
"private": true,
1616
"dependencies": {
17-
"@angular/animations": "19.0.5",
18-
"@angular/cdk": "19.0.4",
19-
"@angular/common": "19.0.5",
20-
"@angular/compiler": "19.0.5",
21-
"@angular/core": "19.0.5",
22-
"@angular/forms": "19.0.5",
23-
"@angular/material": "19.0.4",
24-
"@angular/platform-browser": "19.0.5",
25-
"@angular/platform-browser-dynamic": "19.0.5",
26-
"@angular/router": "19.0.5",
27-
"@nx/angular": "20.3.1",
28-
"@storybook/addon-interactions": "^8.2.8",
17+
"@angular/animations": "19.2.14",
18+
"@angular/cdk": "19.2.18",
19+
"@angular/common": "19.2.14",
20+
"@angular/compiler": "19.2.14",
21+
"@angular/core": "19.2.14",
22+
"@angular/forms": "19.2.14",
23+
"@angular/material": "19.2.18",
24+
"@angular/platform-browser": "19.2.14",
25+
"@angular/platform-browser-dynamic": "19.2.14",
26+
"@angular/router": "19.2.14",
27+
"@nx/angular": "^20.5.1",
28+
"@storybook/addon-interactions": "8.6.11",
2929
"rxjs": "7.8.1",
3030
"storybook": "^8.2.8",
3131
"tslib": "^2.3.0",
3232
"web-animations-js": "^2.3.2",
3333
"zone.js": "0.15.0"
3434
},
3535
"devDependencies": {
36-
"@angular-devkit/build-angular": "19.0.6",
37-
"@angular-devkit/core": "19.0.6",
38-
"@angular-devkit/schematics": "19.0.6",
39-
"@angular-eslint/eslint-plugin": "19.0.2",
40-
"@angular-eslint/eslint-plugin-template": "19.0.2",
41-
"@angular-eslint/template-parser": "19.0.2",
42-
"@angular/cli": "~19.0.0",
43-
"@angular/compiler-cli": "19.0.5",
44-
"@angular/language-service": "19.0.5",
45-
"@nx/cypress": "20.3.1",
46-
"@nx/jest": "20.3.1",
47-
"@nx/storybook": "20.3.1",
48-
"@nx/workspace": "20.3.1",
49-
"@schematics/angular": "19.0.6",
50-
"@storybook/addon-essentials": "8.4.6",
51-
"@storybook/core-server": "8.4.6",
36+
"@angular-devkit/build-angular": "^19.2.14",
37+
"@angular-devkit/core": "19.2.9",
38+
"@angular-devkit/schematics": "19.2.9",
39+
"@angular-eslint/eslint-plugin": "19.2.0",
40+
"@angular-eslint/eslint-plugin-template": "19.2.0",
41+
"@angular-eslint/template-parser": "19.2.0",
42+
"@angular/cli": "~19.2.0",
43+
"@angular/compiler-cli": "19.2.14",
44+
"@angular/language-service": "19.2.14",
45+
"@nx/cypress": "21.1.2",
46+
"@nx/jest": "21.1.2",
47+
"@nx/storybook": "21.1.2",
48+
"@nx/workspace": "21.1.2",
49+
"@schematics/angular": "19.2.9",
50+
"@storybook/addon-essentials": "8.6.11",
51+
"@storybook/core-server": "8.6.11",
5252
"@types/jasmine": "~4.0.0",
5353
"@types/jest": "29.5.14",
5454
"@types/node": "18.16.9",
5555
"@typescript-eslint/utils": "^7.16.0",
5656
"autoprefixer": "^10.4.7",
57-
"codelyzer": "^6.0.0",
58-
"cypress": "^9.1.0",
57+
"codelyzer": "^0.0.28",
58+
"cypress": "^14.4.0",
5959
"eslint": "^8.50.0",
6060
"eslint-plugin-cypress": "2.13.4",
6161
"eslint-plugin-storybook": "^0.6.14",
@@ -70,7 +70,7 @@
7070
"karma-coverage-istanbul-reporter": "~3.0.2",
7171
"karma-jasmine": "5.1.0",
7272
"karma-jasmine-html-reporter": "2.0.0",
73-
"nx": "20.3.1",
73+
"nx": "21.1.2",
7474
"postcss": "^8.4.14",
7575
"prettier": "^2.6.2",
7676
"react": "^18.2.0",
@@ -79,7 +79,7 @@
7979
"ts-jest": "29.1.4",
8080
"ts-node": "10.9.1",
8181
"tslint": "^6.1.0",
82-
"typescript": "5.6.3",
82+
"typescript": "5.7.3",
8383
"webpack": "^5.64.0"
8484
}
8585
}

0 commit comments

Comments
 (0)