chore: migrate nx to latest

This commit is contained in:
Lorenz Hilpert
2025-07-21 22:35:11 +02:00
parent 59ce736faa
commit edab1322c8
9 changed files with 6337 additions and 3029 deletions

View File

@@ -37,11 +37,4 @@ If the user wants help with tasks or commands (which include keywords like "test
- If the task was marked as "continuous" do not offer to rerun the task. This task is already running and the user can see the output in the terminal. You can use 'nx_current_running_task_output' to get the output of the task to verify the output.
# CI Error Guidelines
If the user wants help with fixing an error in their CI pipeline, use the following flow:
- Retrieve the list of current CI Pipeline Executions (CIPEs) using the 'nx_cloud_cipe_details' tool
- If there are any errors, use the 'nx_cloud_fix_cipe_failure' tool to retrieve the logs for a specific task
- Use the task logs to see what's wrong and help the user fix their problem. Use the appropriate tools if necessary
- Make sure that the problem is fixed by running the task that you passed into the 'nx_cloud_fix_cipe_failure' tool

View File

@@ -130,7 +130,7 @@ describe('filterInputMapping', () => {
};
// Act & Assert
expect(() => filterInputMapping(group, input)).toThrowError(
expect(() => filterInputMapping(group, input)).toThrow(
'Unknown input type: 999',
);
expect(mockTextFilterInputMapping).not.toHaveBeenCalled();

View File

@@ -65,7 +65,10 @@ describe('CheckboxInputComponent', () => {
it('should initialize form controls based on input options', () => {
// Arrange
const spyOnInitFormControl = jest.spyOn(spectator.component, 'initFormControl');
const spyOnInitFormControl = jest.spyOn(
spectator.component,
'initFormControl',
);
// Act
spectator.detectChanges();
@@ -121,10 +124,10 @@ describe('CheckboxInputComponent', () => {
filterService.setInputCheckboxValue('test-key', ['option1', 'option2']);
// Assert
expect(filterService.setInputCheckboxValue).toHaveBeenCalledWith('test-key', [
'option1',
'option2',
]);
expect(filterService.setInputCheckboxValue).toHaveBeenCalledWith(
'test-key',
['option1', 'option2'],
);
});
it('should toggle all checkboxes when toggleSelection is called', () => {
@@ -251,6 +254,8 @@ describe('CheckboxInputComponent with non-matching key', () => {
it('should throw error when input is not found', () => {
// Act & Assert
expect(() => spectator.detectChanges()).toThrowError('Input not found for key: test-key');
expect(() => spectator.detectChanges()).toThrow(
'Input not found for key: test-key',
);
});
});

View File

@@ -1,193 +0,0 @@
{
"migrations": [
{
"cli": "nx",
"version": "20.2.0-beta.2",
"description": "Update the ModuleFederationConfig import use @nx/module-federation.",
"factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package",
"package": "@nx/angular",
"name": "update-20-2-0-update-module-federation-config-import"
},
{
"cli": "nx",
"version": "20.2.0-beta.2",
"description": "Update the withModuleFederation import use @nx/module-federation/angular.",
"factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package",
"package": "@nx/angular",
"name": "update-20-2-0-update-with-module-federation-import"
},
{
"cli": "nx",
"version": "20.2.0-beta.5",
"requires": { "@angular/core": ">=19.0.0" },
"description": "Update the @angular/cli package version to ~19.0.0.",
"factory": "./src/migrations/update-20-2-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-19-0-0"
},
{
"cli": "nx",
"version": "20.2.0-beta.5",
"requires": { "@angular/core": ">=19.0.0" },
"description": "Add the '@angular/localize/init' polyfill to the 'polyfills' option of targets using esbuild-based executors.",
"factory": "./src/migrations/update-20-2-0/add-localize-polyfill-to-targets",
"package": "@nx/angular",
"name": "add-localize-polyfill-to-targets"
},
{
"cli": "nx",
"version": "20.2.0-beta.5",
"requires": { "@angular/core": ">=19.0.0" },
"description": "Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected.",
"factory": "./src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point",
"package": "@nx/angular",
"name": "update-angular-ssr-imports-to-use-node-entry-point"
},
{
"cli": "nx",
"version": "20.2.0-beta.6",
"requires": { "@angular/core": ">=19.0.0" },
"description": "Disable the Angular ESLint prefer-standalone rule if not set.",
"factory": "./src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone",
"package": "@nx/angular",
"name": "disable-angular-eslint-prefer-standalone"
},
{
"cli": "nx",
"version": "20.2.0-beta.8",
"requires": { "@angular/core": ">=19.0.0" },
"description": "Remove Angular ESLint rules that were removed in v19.0.0.",
"factory": "./src/migrations/update-20-2-0/remove-angular-eslint-rules",
"package": "@nx/angular",
"name": "remove-angular-eslint-rules"
},
{
"cli": "nx",
"version": "20.2.0-beta.8",
"requires": { "@angular/core": ">=19.0.0" },
"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.",
"factory": "./src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors",
"package": "@nx/angular",
"name": "remove-tailwind-config-from-ng-packagr-executors"
},
{
"cli": "nx",
"version": "20.3.0-beta.2",
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
"factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package",
"package": "@nx/angular",
"name": "ensure-nx-module-federation-package"
},
{
"cli": "nx",
"version": "20.4.0-beta.1",
"requires": { "@angular/core": ">=19.1.0" },
"description": "Update the @angular/cli package version to ~19.1.0.",
"factory": "./src/migrations/update-20-4-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-19-1-0"
},
{
"cli": "nx",
"version": "20.5.0-beta.5",
"requires": { "@angular/core": ">=19.2.0" },
"description": "Update the @angular/cli package version to ~19.2.0.",
"factory": "./src/migrations/update-20-5-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-19-2-0"
},
{
"cli": "nx",
"version": "21.0.0-beta.3",
"description": "Set the `continuous` option to `true` for continuous tasks.",
"factory": "./src/migrations/update-21-0-0/set-continuous-option",
"package": "@nx/angular",
"name": "set-continuous-option"
},
{
"cli": "nx",
"version": "21.0.0-beta.5",
"requires": { "@ngrx/store": ">=16.0.0" },
"description": "Change the data persistence operator imports to '@ngrx/router-store/data-persistence'.",
"factory": "./src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence",
"package": "@nx/angular",
"name": "change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence"
},
{
"cli": "nx",
"version": "21.2.0-beta.3",
"requires": { "@angular/core": ">=20.0.0" },
"description": "Update the @angular/cli package version to ~20.0.0.",
"factory": "./src/migrations/update-21-2-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-20-0-0"
},
{
"version": "21.2.0-beta.3",
"requires": { "@angular/core": ">=20.0.0" },
"description": "Migrate imports of `provideServerRendering` from `@angular/platform-server` to `@angular/ssr`.",
"factory": "./src/migrations/update-21-2-0/migrate-provide-server-rendering-import",
"package": "@nx/angular",
"name": "migrate-provide-server-rendering-import"
},
{
"version": "21.2.0-beta.3",
"requires": { "@angular/core": ">=20.0.0" },
"description": "Replace `provideServerRouting` and `provideServerRoutesConfig` with `provideServerRendering` using `withRoutes`.",
"factory": "./src/migrations/update-21-2-0/replace-provide-server-routing",
"package": "@nx/angular",
"name": "replace-provide-server-routing"
},
{
"version": "21.2.0-beta.3",
"requires": { "@angular/core": ">=20.0.0" },
"description": "Update the generator defaults to maintain the previous style guide behavior.",
"factory": "./src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide",
"package": "@nx/angular",
"name": "set-generator-defaults-for-previous-style-guide"
},
{
"version": "21.2.0-beta.3",
"requires": { "@angular/core": ">=20.0.0" },
"description": "Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this here: https://www.typescriptlang.org/tsconfig/#moduleResolution.",
"factory": "./src/migrations/update-21-2-0/update-module-resolution",
"package": "@nx/angular",
"name": "update-module-resolution"
},
{
"version": "20.3.0-beta.2",
"description": "Add gitignore entry for temporary vitest config files.",
"implementation": "./src/migrations/update-20-3-0/add-vitest-temp-files-to-git-ignore",
"package": "@nx/vite",
"name": "update-20-3-0"
},
{
"version": "20.5.0-beta.2",
"description": "Install jiti as a devDependency to allow vite to parse TS postcss files.",
"implementation": "./src/migrations/update-20-5-0/install-jiti",
"package": "@nx/vite",
"name": "update-20-5-0-install-jiti"
},
{
"version": "20.5.0-beta.3",
"description": "Update resolve.conditions to include defaults that are no longer provided by Vite.",
"implementation": "./src/migrations/update-20-5-0/update-resolve-conditions",
"package": "@nx/vite",
"name": "update-20-5-0-update-resolve-conditions"
},
{
"version": "20.5.0-beta.3",
"description": "Add vite config temporary files to the ESLint configuration ignore patterns if ESLint is used.",
"implementation": "./src/migrations/update-20-5-0/eslint-ignore-vite-temp-files",
"package": "@nx/vite",
"name": "eslint-ignore-vite-temp-files"
},
{
"version": "20.0.0-alpha.0",
"description": "Updates @angular-eslint to v20",
"factory": "./migrations/update-20-0-0/update-20-0-0",
"package": "angular-eslint",
"name": "update-20-0-0"
}
]
}

8381
package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@
"start": "nx serve isa-app --ssl",
"pretest": "npx trash-cli testresults",
"test": "npx nx run-many --tuiAutoExit true -t test --exclude isa-app",
"ci": "npx nx run-many -t test --exclude isa-app -c ci",
"ci": "npx nx run-many -t test --exclude isa-app -c ci --tuiAutoExit true",
"build": "nx build isa-app --configuration=development",
"build-prod": "nx build isa-app --configuration=production",
"lint": "nx lint",
@@ -20,17 +20,17 @@
},
"private": true,
"dependencies": {
"@angular/animations": "20.0.3",
"@angular/cdk": "20.0.3",
"@angular/common": "20.0.3",
"@angular/compiler": "20.0.3",
"@angular/core": "20.0.3",
"@angular/forms": "20.0.3",
"@angular/localize": "20.0.3",
"@angular/platform-browser": "20.0.3",
"@angular/platform-browser-dynamic": "20.0.3",
"@angular/router": "20.0.3",
"@angular/service-worker": "20.0.3",
"@angular/animations": "20.1.2",
"@angular/cdk": "20.1.2",
"@angular/common": "20.1.2",
"@angular/compiler": "20.1.2",
"@angular/core": "20.1.2",
"@angular/forms": "20.1.2",
"@angular/localize": "20.1.2",
"@angular/platform-browser": "20.1.2",
"@angular/platform-browser-dynamic": "20.1.2",
"@angular/router": "20.1.2",
"@angular/service-worker": "20.1.2",
"@microsoft/signalr": "^8.0.7",
"@ng-icons/core": "32.0.0",
"@ng-icons/material-icons": "32.0.0",
@@ -58,34 +58,34 @@
"zone.js": "~0.15.0"
},
"devDependencies": {
"@analogjs/vite-plugin-angular": "~1.17.1",
"@analogjs/vitest-angular": "~1.17.1",
"@angular-devkit/build-angular": "20.0.3",
"@angular-devkit/core": "20.0.2",
"@angular-devkit/schematics": "20.0.2",
"@angular/build": "20.0.3",
"@angular/cli": "~20.0.0",
"@angular/compiler-cli": "20.0.3",
"@angular/language-service": "20.0.3",
"@angular/pwa": "20.0.2",
"@analogjs/vite-plugin-angular": "1.19.1",
"@analogjs/vitest-angular": "1.19.1",
"@angular-devkit/build-angular": "20.1.1",
"@angular-devkit/core": "20.1.1",
"@angular-devkit/schematics": "20.1.1",
"@angular/build": "20.1.1",
"@angular/cli": "~20.1.0",
"@angular/compiler-cli": "20.1.2",
"@angular/language-service": "20.1.2",
"@angular/pwa": "20.1.1",
"@eslint/js": "^9.8.0",
"@ngneat/spectator": "19.6.2",
"@nx/angular": "21.2.1",
"@nx/eslint": "21.2.1",
"@nx/eslint-plugin": "21.2.1",
"@nx/jest": "21.2.1",
"@nx/js": "21.2.1",
"@nx/storybook": "21.2.1",
"@nx/vite": "21.2.1",
"@nx/web": "21.2.1",
"@nx/workspace": "21.2.1",
"@schematics/angular": "20.0.2",
"@nx/angular": "21.3.2",
"@nx/eslint": "21.3.2",
"@nx/eslint-plugin": "21.3.2",
"@nx/jest": "21.3.2",
"@nx/js": "21.3.2",
"@nx/storybook": "21.3.2",
"@nx/vite": "21.3.2",
"@nx/web": "21.3.2",
"@nx/workspace": "21.3.2",
"@schematics/angular": "20.1.1",
"@storybook/addon-docs": "^9.0.11",
"@storybook/angular": "^9.0.5",
"@swc-node/register": "1.10.10",
"@swc/core": "1.12.1",
"@swc/helpers": "0.5.17",
"@types/jest": "^29.5.12",
"@types/jest": "30.0.0",
"@types/lodash": "^4.17.16",
"@types/node": "18.16.9",
"@types/uuid": "^10.0.0",
@@ -97,8 +97,8 @@
"eslint": "^9.28.0",
"eslint-config-prettier": "^10.1.5",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest": "30.0.4",
"jest-environment-jsdom": "30.0.4",
"jest-environment-node": "^29.7.0",
"jest-junit": "^16.0.0",
"jest-preset-angular": "14.6.0",
@@ -106,9 +106,9 @@
"jsdom": "~22.1.0",
"jsonc-eslint-parser": "^2.1.0",
"ng-mocks": "14.13.5",
"ng-packagr": "20.0.1",
"ng-packagr": "20.1.0",
"ng-swagger-gen": "^2.3.1",
"nx": "21.2.1",
"nx": "21.3.2",
"postcss": "^8.5.3",
"postcss-url": "~10.1.3",
"prettier": "^3.5.2",