Skip to content

Commit

Permalink
chore: migrate to the latest version of nx
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoslig committed Dec 16, 2024
1 parent 8c0d9fa commit 2127c1d
Show file tree
Hide file tree
Showing 26 changed files with 428 additions and 460 deletions.
3 changes: 2 additions & 1 deletion apps/conduit/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/articles/data-access/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing';
import { ApiService } from '@realworld/core/http-client';
import { MockProvider } from 'ng-mocks';
import { ActionsService } from './actions.service';

describe('ActionsService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [ActionsService, MockProvider(ApiService)],
providers: [ActionsService, ApiService],
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import { ApiService } from '@realworld/core/http-client';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing';
import { ArticlesService } from './articles.service';
import { MockProvider } from 'ng-mocks';

describe('ArticlesService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [ArticlesService, MockProvider(ApiService)],
providers: [ArticlesService, ApiService],
});
});

Expand Down
3 changes: 2 additions & 1 deletion libs/articles/feature-article-edit/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/articles/feature-article/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/articles/feature-articles-list/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/auth/data-access/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions libs/auth/data-access/src/auth.store.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing';

import { AuthStore } from './auth.store';
import { MockProvider } from 'ng-mocks';
import { LocalStorageJwtService } from './services/local-storage-jwt.service';

describe('AuthStore', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [AuthStore, LocalStorageJwtService, MockProvider(ApiService)],
providers: [AuthStore, LocalStorageJwtService, ApiService],
});
});

Expand Down
3 changes: 1 addition & 2 deletions libs/auth/data-access/src/services/auth.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { inject, TestBed } from '@angular/core/testing';

import { AuthService } from './auth.service';
import { LocalStorageJwtService } from './local-storage-jwt.service';
import { MockProvider } from 'ng-mocks';

describe('AuthService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [AuthService, LocalStorageJwtService, MockProvider(ApiService)],
providers: [AuthService, LocalStorageJwtService, ApiService],
});
});

Expand Down
3 changes: 2 additions & 1 deletion libs/auth/feature-auth/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/core/data-access/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "lib",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ export function getCallStateKeys(config?: { collection?: string }) {
export function withCallState<Collection extends string>(config: {
collection: Collection;
}): SignalStoreFeature<
{ state: {}; computed: {}; methods: {} },
{ state: {}; props: {}; methods: {} },
{
state: NamedCallStateSlice<Collection>;
computed: NamedCallStateSignals<Collection>;
props: NamedCallStateSignals<Collection>;
methods: {};
}
>;
export function withCallState(): SignalStoreFeature<
{ state: {}; computed: {}; methods: {} },
{ state: {}; props: {}; methods: {} },
{
state: CallStateSlice;
computed: CallStateSignals;
props: CallStateSignals;
methods: {};
}
>;
Expand Down
3 changes: 2 additions & 1 deletion libs/core/error-handler/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/core/forms/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/core/http-client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/home/feature-home/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions libs/home/feature-home/src/home.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing';
import { ApiService } from '@realworld/core/http-client';
import { MockProvider } from 'ng-mocks';
import { HomeService } from './home.service';

describe('HomeService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [HomeService, MockProvider(ApiService)],
providers: [HomeService, ApiService],
});
});

Expand Down
3 changes: 2 additions & 1 deletion libs/profile/data-access/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { inject, TestBed } from '@angular/core/testing';
import { ApiService } from '@realworld/core/http-client';
import { MockProvider } from 'ng-mocks';
import { ProfileService } from './profile.service';

describe('ProfileService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [ProfileService, MockProvider(ApiService)],
providers: [ProfileService, ApiService],
});
});

Expand Down
3 changes: 2 additions & 1 deletion libs/profile/feature-profile/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/settings/feature-settings/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/components/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"prefix": "cdt",
"style": "kebab-case"
}
]
],
"@angular-eslint/prefer-standalone": "off"
}
},
{
Expand Down
65 changes: 65 additions & 0 deletions migrations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"migrations": [
{
"version": "20.2.0-beta.5",
"description": "Update TypeScript ESLint packages to v8.13.0 if they are already on v8",
"implementation": "./src/migrations/update-20-2-0/update-typescript-eslint-v8-13-0",
"package": "@nx/eslint",
"name": "update-typescript-eslint-v8.13.0"
},
{
"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"
}
]
}
Loading

0 comments on commit 2127c1d

Please sign in to comment.