mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat: migrate to nx 19 and angular 18
This commit is contained in:
@@ -30,12 +30,18 @@
|
|||||||
{
|
{
|
||||||
"files": ["*.ts", "*.tsx"],
|
"files": ["*.ts", "*.tsx"],
|
||||||
"extends": ["plugin:@nx/typescript"],
|
"extends": ["plugin:@nx/typescript"],
|
||||||
"rules": {}
|
"rules": {
|
||||||
|
"@typescript-eslint/no-extra-semi": "error",
|
||||||
|
"no-extra-semi": "off"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": ["*.js", "*.jsx"],
|
"files": ["*.js", "*.jsx"],
|
||||||
"extends": ["plugin:@nx/javascript"],
|
"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"],
|
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { HttpClientModule } from '@angular/common/http';
|
import { provideHttpClient } from '@angular/common/http';
|
||||||
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
import { ApplicationConfig } from '@angular/core';
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
providers: [importProvidersFrom(HttpClientModule)],
|
providers: [provideHttpClient()],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,19 +4,19 @@
|
|||||||
|
|
||||||
@include mat.core();
|
@include mat.core();
|
||||||
|
|
||||||
$theme-primary: mat.define-palette(mat.$indigo-palette);
|
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
|
||||||
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
$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: (
|
color: (
|
||||||
primary: $theme-primary,
|
primary: $theme-primary,
|
||||||
accent: $theme-accent,
|
accent: $theme-accent,
|
||||||
warn: $theme-warn,
|
warn: $theme-warn,
|
||||||
),
|
),
|
||||||
typography: mat.define-typography-config(),
|
typography: mat.m2-define-typography-config(),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { HttpClientModule } from '@angular/common/http';
|
import { provideHttpClient } from '@angular/common/http';
|
||||||
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
import { ApplicationConfig } from '@angular/core';
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
providers: [importProvidersFrom(HttpClientModule)],
|
providers: [provideHttpClient()],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,19 +8,19 @@
|
|||||||
|
|
||||||
@include mat.core();
|
@include mat.core();
|
||||||
|
|
||||||
$theme-primary: mat.define-palette(mat.$indigo-palette);
|
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
|
||||||
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
$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: (
|
color: (
|
||||||
primary: $theme-primary,
|
primary: $theme-primary,
|
||||||
accent: $theme-accent,
|
accent: $theme-accent,
|
||||||
warn: $theme-warn,
|
warn: $theme-warn,
|
||||||
),
|
),
|
||||||
typography: mat.define-typography-config(),
|
typography: mat.m2-define-typography-config(),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -9,19 +9,19 @@
|
|||||||
|
|
||||||
@include mat.core();
|
@include mat.core();
|
||||||
|
|
||||||
$theme-primary: mat.define-palette(mat.$indigo-palette);
|
$theme-primary: mat.m2-define-palette(mat.$m2-indigo-palette);
|
||||||
$theme-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
$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: (
|
color: (
|
||||||
primary: $theme-primary,
|
primary: $theme-primary,
|
||||||
accent: $theme-accent,
|
accent: $theme-accent,
|
||||||
warn: $theme-warn,
|
warn: $theme-warn,
|
||||||
),
|
),
|
||||||
typography: mat.define-typography-config(),
|
typography: mat.m2-define-typography-config(),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -38,12 +38,18 @@
|
|||||||
{
|
{
|
||||||
"files": ["*.ts", "*.tsx"],
|
"files": ["*.ts", "*.tsx"],
|
||||||
"extends": ["plugin:@nx/typescript"],
|
"extends": ["plugin:@nx/typescript"],
|
||||||
"rules": {}
|
"rules": {
|
||||||
|
"@typescript-eslint/no-extra-semi": "error",
|
||||||
|
"no-extra-semi": "off"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": ["*.js", "*.jsx"],
|
"files": ["*.js", "*.jsx"],
|
||||||
"extends": ["plugin:@nx/javascript"],
|
"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"],
|
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
|
||||||
|
|||||||
@@ -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
7074
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
105
package.json
105
package.json
@@ -14,98 +14,95 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
"@angular/animations": "17.3.1",
|
"@angular/animations": "18.0.0",
|
||||||
"@angular/cdk": "17.3.1",
|
"@angular/cdk": "18.0.0",
|
||||||
"@angular/common": "17.3.1",
|
"@angular/common": "18.0.0",
|
||||||
"@angular/compiler": "17.3.1",
|
"@angular/compiler": "18.0.0",
|
||||||
"@angular/core": "17.3.1",
|
"@angular/core": "18.0.0",
|
||||||
"@angular/forms": "17.3.1",
|
"@angular/forms": "18.0.0",
|
||||||
"@angular/material": "17.3.1",
|
"@angular/material": "18.0.0",
|
||||||
"@angular/platform-browser": "17.3.1",
|
"@angular/platform-browser": "18.0.0",
|
||||||
"@angular/platform-browser-dynamic": "17.3.1",
|
"@angular/platform-browser-dynamic": "18.0.0",
|
||||||
"@angular/router": "17.3.1",
|
"@angular/router": "18.0.0",
|
||||||
"@ngneat/falso": "^6.4.0",
|
"@ngneat/falso": "^6.4.0",
|
||||||
"@ngrx/component": "17.1.1",
|
"@ngrx/component": "18.0.0-beta.1",
|
||||||
"@ngrx/component-store": "17.1.1",
|
"@ngrx/component-store": "18.0.0-beta.1",
|
||||||
"@ngrx/effects": "17.1.1",
|
"@ngrx/effects": "18.0.0-beta.1",
|
||||||
"@ngrx/entity": "17.1.1",
|
"@ngrx/entity": "18.0.0-beta.1",
|
||||||
"@ngrx/router-store": "17.1.1",
|
"@ngrx/router-store": "18.0.0-beta.1",
|
||||||
"@ngrx/store": "17.1.1",
|
"@ngrx/store": "18.0.0-beta.1",
|
||||||
"@nx/angular": "18.1.3",
|
"@nx/angular": "19.1.0",
|
||||||
"@rx-angular/cdk": "^17.0.0",
|
|
||||||
"@rx-angular/state": "^17.0.0",
|
|
||||||
"@rx-angular/template": "^17.0.0",
|
|
||||||
"@swc/helpers": "0.5.3",
|
"@swc/helpers": "0.5.3",
|
||||||
"@tanstack/angular-query-experimental": "^5.12.1",
|
"@tanstack/angular-query-experimental": "^5.12.1",
|
||||||
"rxjs": "7.8.1",
|
"rxjs": "7.8.1",
|
||||||
"tailwindcss": "^3.3.5",
|
"tailwindcss": "3.4.3",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"zone.js": "0.14.2"
|
"zone.js": "0.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "17.3.2",
|
"@angular-devkit/build-angular": "18.0.1",
|
||||||
"@angular-devkit/core": "17.3.2",
|
"@angular-devkit/core": "18.0.1",
|
||||||
"@angular-devkit/schematics": "17.3.2",
|
"@angular-devkit/schematics": "18.0.1",
|
||||||
"@angular-eslint/eslint-plugin": "17.3.0",
|
"@angular-eslint/eslint-plugin": "17.5.1",
|
||||||
"@angular-eslint/eslint-plugin-template": "17.3.0",
|
"@angular-eslint/eslint-plugin-template": "17.5.1",
|
||||||
"@angular-eslint/template-parser": "17.3.0",
|
"@angular-eslint/template-parser": "17.5.1",
|
||||||
"@angular/cli": "~17.2.0",
|
"@angular/cli": "~18.0.0",
|
||||||
"@angular/compiler-cli": "17.3.1",
|
"@angular/compiler-cli": "18.0.0",
|
||||||
"@angular/language-service": "17.3.1",
|
"@angular/language-service": "18.0.0",
|
||||||
"@commitlint/cli": "^17.2.0",
|
"@commitlint/cli": "^17.2.0",
|
||||||
"@commitlint/config-conventional": "^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",
|
"@hirez_io/observer-spy": "^2.2.0",
|
||||||
"@ngrx/schematics": "17.0.1",
|
"@ngrx/schematics": "17.0.1",
|
||||||
"@nx/cypress": "18.1.3",
|
"@nx/cypress": "19.1.0",
|
||||||
"@nx/devkit": "18.1.3",
|
"@nx/devkit": "19.1.0",
|
||||||
"@nx/eslint": "18.1.3",
|
"@nx/eslint": "19.1.0",
|
||||||
"@nx/eslint-plugin": "18.1.3",
|
"@nx/eslint-plugin": "19.1.0",
|
||||||
"@nx/jest": "18.1.3",
|
"@nx/jest": "19.1.0",
|
||||||
"@nx/js": "18.1.3",
|
"@nx/js": "19.1.0",
|
||||||
"@nx/plugin": "18.1.3",
|
"@nx/plugin": "19.1.0",
|
||||||
"@nx/workspace": "18.1.3",
|
"@nx/workspace": "19.1.0",
|
||||||
"@schematics/angular": "17.2.3",
|
"@schematics/angular": "18.0.1",
|
||||||
"@swc-node/register": "1.8.0",
|
"@swc-node/register": "1.8.0",
|
||||||
"@swc/cli": "~0.1.62",
|
"@swc/cli": "0.3.12",
|
||||||
"@swc/core": "1.3.94",
|
"@swc/core": "1.3.94",
|
||||||
"@tailwindcss/forms": "^0.5.7",
|
"@tailwindcss/forms": "^0.5.7",
|
||||||
"@tanstack/angular-query-devtools-experimental": "^5.12.1",
|
"@tanstack/angular-query-devtools-experimental": "5.38.0",
|
||||||
"@testing-library/angular": "15.1.0",
|
"@testing-library/angular": "16.0.0",
|
||||||
"@testing-library/cypress": "10.0.1",
|
"@testing-library/cypress": "10.0.1",
|
||||||
"@testing-library/jest-dom": "^6.1.5",
|
"@testing-library/jest-dom": "6.4.5",
|
||||||
"@testing-library/user-event": "^14.5.1",
|
"@testing-library/user-event": "14.5.2",
|
||||||
"@types/jest": "29.4.0",
|
"@types/jest": "29.4.0",
|
||||||
"@types/node": "18.16.9",
|
"@types/node": "18.16.9",
|
||||||
"@typescript-eslint/eslint-plugin": "6.21.0",
|
"@typescript-eslint/eslint-plugin": "7.9.0",
|
||||||
"@typescript-eslint/parser": "6.21.0",
|
"@typescript-eslint/parser": "7.9.0",
|
||||||
"all-contributors-cli": "^6.26.1",
|
"all-contributors-cli": "^6.26.1",
|
||||||
"autoprefixer": "^10.4.0",
|
"autoprefixer": "^10.4.0",
|
||||||
"cypress": "^13.6.6",
|
"cypress": "13.9.0",
|
||||||
"eslint": "8.48.0",
|
"eslint": "8.57.0",
|
||||||
"eslint-config-prettier": "9.0.0",
|
"eslint-config-prettier": "9.0.0",
|
||||||
"eslint-plugin-cypress": "2.15.1",
|
"eslint-plugin-cypress": "2.15.1",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"husky": "^8.0.2",
|
"husky": "^8.0.2",
|
||||||
"jest": "29.5.0",
|
"jest": "29.5.0",
|
||||||
"jest-environment-jsdom": "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",
|
"jsonc-eslint-parser": "^2.1.0",
|
||||||
"lint-staged": "^13.0.3",
|
"lint-staged": "^13.0.3",
|
||||||
"ng-packagr": "17.2.1",
|
"ng-packagr": "18.0.0",
|
||||||
"nx": "18.1.3",
|
"nx": "19.1.0",
|
||||||
"postcss": "^8.4.5",
|
"postcss": "^8.4.5",
|
||||||
"postcss-import": "~14.1.0",
|
"postcss-import": "~14.1.0",
|
||||||
"postcss-preset-env": "~7.5.0",
|
"postcss-preset-env": "~7.5.0",
|
||||||
"postcss-url": "~10.1.3",
|
"postcss-url": "~10.1.3",
|
||||||
"prettier": "3.2.5",
|
"prettier": "3.2.5",
|
||||||
"prettier-plugin-organize-imports": "3.2.4",
|
"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",
|
"source-map-explorer": "^2.5.3",
|
||||||
"testing-library-selector": "^0.3.1",
|
"testing-library-selector": "^0.3.1",
|
||||||
"ts-jest": "29.1.0",
|
"ts-jest": "29.1.0",
|
||||||
"ts-node": "10.9.1",
|
"ts-node": "10.9.1",
|
||||||
"typescript": "5.3.3"
|
"typescript": "5.4.5"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{ts,json,md}": [
|
"*.{ts,json,md}": [
|
||||||
|
|||||||
Reference in New Issue
Block a user