feat: migrate to nx 19 and angular 18

This commit is contained in:
thomas
2024-05-26 21:35:28 +02:00
parent 7cc1d2d61c
commit f0abc3ec46
10 changed files with 4375 additions and 2886 deletions

View File

@@ -30,12 +30,18 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],

View File

@@ -1,5 +1,6 @@
import { HttpClientModule } from '@angular/common/http';
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideHttpClient } from '@angular/common/http';
import { ApplicationConfig } from '@angular/core';
export const appConfig: ApplicationConfig = {
providers: [importProvidersFrom(HttpClientModule)],
providers: [provideHttpClient()],
};

View File

@@ -4,19 +4,19 @@
@include mat.core();
$theme-primary: mat.define-palette(mat.$indigo-palette);
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
$theme-warn: mat.define-palette(mat.$red-palette);
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
$theme: mat.define-light-theme(
$theme: mat.m2-define-light-theme(
(
color: (
primary: $theme-primary,
accent: $theme-accent,
warn: $theme-warn,
),
typography: mat.define-typography-config(),
typography: mat.m2-define-typography-config(),
)
);

View File

@@ -1,6 +1,6 @@
import { HttpClientModule } from '@angular/common/http';
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideHttpClient } from '@angular/common/http';
import { ApplicationConfig } from '@angular/core';
export const appConfig: ApplicationConfig = {
providers: [importProvidersFrom(HttpClientModule)],
providers: [provideHttpClient()],
};

View File

@@ -8,19 +8,19 @@
@include mat.core();
$theme-primary: mat.define-palette(mat.$indigo-palette);
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
$theme-warn: mat.define-palette(mat.$red-palette);
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
$theme: mat.define-light-theme(
$theme: mat.m2-define-light-theme(
(
color: (
primary: $theme-primary,
accent: $theme-accent,
warn: $theme-warn,
),
typography: mat.define-typography-config(),
typography: mat.m2-define-typography-config(),
)
);

View File

@@ -9,19 +9,19 @@
@include mat.core();
$theme-primary: mat.define-palette(mat.$indigo-palette);
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
$theme-accent: mat.m2-define-palette(mat.$m2-pink-palette, A200, A100, A400);
$theme-warn: mat.define-palette(mat.$red-palette);
$theme-warn: mat.m2-define-palette(mat.$m2-red-palette);
$theme: mat.define-light-theme(
$theme: mat.m2-define-light-theme(
(
color: (
primary: $theme-primary,
accent: $theme-accent,
warn: $theme-warn,
),
typography: mat.define-typography-config(),
typography: mat.m2-define-typography-config(),
)
);

View File

@@ -38,12 +38,18 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],

View File

@@ -1,19 +0,0 @@
{
"migrations": [
{
"cli": "nx",
"version": "17.2.0-beta.2",
"description": "Rename '@nx/angular:webpack-dev-server' executor to '@nx/angular:dev-server'",
"factory": "./src/migrations/update-17-2-0/rename-webpack-dev-server",
"package": "@nx/angular",
"name": "rename-webpack-dev-server-executor"
},
{
"version": "17.2.0-beta.0",
"description": "Simplify eslintFilePatterns",
"implementation": "./src/migrations/update-17-2-0/simplify-eslint-patterns",
"package": "@nx/eslint",
"name": "simplify-eslint-patterns"
}
]
}

7074
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,98 +14,95 @@
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@angular/animations": "17.3.1",
"@angular/cdk": "17.3.1",
"@angular/common": "17.3.1",
"@angular/compiler": "17.3.1",
"@angular/core": "17.3.1",
"@angular/forms": "17.3.1",
"@angular/material": "17.3.1",
"@angular/platform-browser": "17.3.1",
"@angular/platform-browser-dynamic": "17.3.1",
"@angular/router": "17.3.1",
"@angular/animations": "18.0.0",
"@angular/cdk": "18.0.0",
"@angular/common": "18.0.0",
"@angular/compiler": "18.0.0",
"@angular/core": "18.0.0",
"@angular/forms": "18.0.0",
"@angular/material": "18.0.0",
"@angular/platform-browser": "18.0.0",
"@angular/platform-browser-dynamic": "18.0.0",
"@angular/router": "18.0.0",
"@ngneat/falso": "^6.4.0",
"@ngrx/component": "17.1.1",
"@ngrx/component-store": "17.1.1",
"@ngrx/effects": "17.1.1",
"@ngrx/entity": "17.1.1",
"@ngrx/router-store": "17.1.1",
"@ngrx/store": "17.1.1",
"@nx/angular": "18.1.3",
"@rx-angular/cdk": "^17.0.0",
"@rx-angular/state": "^17.0.0",
"@rx-angular/template": "^17.0.0",
"@ngrx/component": "18.0.0-beta.1",
"@ngrx/component-store": "18.0.0-beta.1",
"@ngrx/effects": "18.0.0-beta.1",
"@ngrx/entity": "18.0.0-beta.1",
"@ngrx/router-store": "18.0.0-beta.1",
"@ngrx/store": "18.0.0-beta.1",
"@nx/angular": "19.1.0",
"@swc/helpers": "0.5.3",
"@tanstack/angular-query-experimental": "^5.12.1",
"rxjs": "7.8.1",
"tailwindcss": "^3.3.5",
"tailwindcss": "3.4.3",
"tslib": "^2.3.0",
"zone.js": "0.14.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "17.3.2",
"@angular-devkit/core": "17.3.2",
"@angular-devkit/schematics": "17.3.2",
"@angular-eslint/eslint-plugin": "17.3.0",
"@angular-eslint/eslint-plugin-template": "17.3.0",
"@angular-eslint/template-parser": "17.3.0",
"@angular/cli": "~17.2.0",
"@angular/compiler-cli": "17.3.1",
"@angular/language-service": "17.3.1",
"@angular-devkit/build-angular": "18.0.1",
"@angular-devkit/core": "18.0.1",
"@angular-devkit/schematics": "18.0.1",
"@angular-eslint/eslint-plugin": "17.5.1",
"@angular-eslint/eslint-plugin-template": "17.5.1",
"@angular-eslint/template-parser": "17.5.1",
"@angular/cli": "~18.0.0",
"@angular/compiler-cli": "18.0.0",
"@angular/language-service": "18.0.0",
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@cypress/webpack-dev-server": "^2.0.0",
"@cypress/webpack-dev-server": "3.8.0",
"@hirez_io/observer-spy": "^2.2.0",
"@ngrx/schematics": "17.0.1",
"@nx/cypress": "18.1.3",
"@nx/devkit": "18.1.3",
"@nx/eslint": "18.1.3",
"@nx/eslint-plugin": "18.1.3",
"@nx/jest": "18.1.3",
"@nx/js": "18.1.3",
"@nx/plugin": "18.1.3",
"@nx/workspace": "18.1.3",
"@schematics/angular": "17.2.3",
"@nx/cypress": "19.1.0",
"@nx/devkit": "19.1.0",
"@nx/eslint": "19.1.0",
"@nx/eslint-plugin": "19.1.0",
"@nx/jest": "19.1.0",
"@nx/js": "19.1.0",
"@nx/plugin": "19.1.0",
"@nx/workspace": "19.1.0",
"@schematics/angular": "18.0.1",
"@swc-node/register": "1.8.0",
"@swc/cli": "~0.1.62",
"@swc/cli": "0.3.12",
"@swc/core": "1.3.94",
"@tailwindcss/forms": "^0.5.7",
"@tanstack/angular-query-devtools-experimental": "^5.12.1",
"@testing-library/angular": "15.1.0",
"@tanstack/angular-query-devtools-experimental": "5.38.0",
"@testing-library/angular": "16.0.0",
"@testing-library/cypress": "10.0.1",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/user-event": "^14.5.1",
"@testing-library/jest-dom": "6.4.5",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.4.0",
"@types/node": "18.16.9",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@typescript-eslint/eslint-plugin": "7.9.0",
"@typescript-eslint/parser": "7.9.0",
"all-contributors-cli": "^6.26.1",
"autoprefixer": "^10.4.0",
"cypress": "^13.6.6",
"eslint": "8.48.0",
"cypress": "13.9.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-cypress": "2.15.1",
"html-webpack-plugin": "^5.5.0",
"husky": "^8.0.2",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"jest-preset-angular": "14.0.3",
"jest-preset-angular": "14.1.0",
"jsonc-eslint-parser": "^2.1.0",
"lint-staged": "^13.0.3",
"ng-packagr": "17.2.1",
"nx": "18.1.3",
"ng-packagr": "18.0.0",
"nx": "19.1.0",
"postcss": "^8.4.5",
"postcss-import": "~14.1.0",
"postcss-preset-env": "~7.5.0",
"postcss-url": "~10.1.3",
"prettier": "3.2.5",
"prettier-plugin-organize-imports": "3.2.4",
"prettier-plugin-tailwindcss": "0.5.12",
"prettier-plugin-tailwindcss": "0.5.14",
"source-map-explorer": "^2.5.3",
"testing-library-selector": "^0.3.1",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typescript": "5.3.3"
"typescript": "5.4.5"
},
"lint-staged": {
"*.{ts,json,md}": [