Skip to content

Commit b9fd4d2

Browse files
committed
chore(nx): Upgrade to Nx 18 - align apps
1 parent 44d482d commit b9fd4d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+403
-659
lines changed

apps/mfe1/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
"error",
1414
{
1515
"type": "attribute",
16-
"prefix": "angularArchitects",
16+
"prefix": "mfe1",
1717
"style": "camelCase"
1818
}
1919
],
2020
"@angular-eslint/component-selector": [
2121
"error",
2222
{
2323
"type": "element",
24-
"prefix": "angular-architects",
24+
"prefix": "mfe1",
2525
"style": "kebab-case"
2626
}
2727
]

apps/mfe1/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mfe1",
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
5-
"prefix": "angular-architects",
5+
"prefix": "mfe1",
66
"sourceRoot": "apps/mfe1/src",
77
"tags": [],
88
"targets": {

apps/mfe1/src/app/app.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
<angular-architects-nx-welcome></angular-architects-nx-welcome>
1+
<mfe1-nx-welcome></mfe1-nx-welcome>
2+
<router-outlet></router-outlet>

apps/mfe1/src/app/app.component.spec.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

apps/mfe1/src/app/app.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { Component } from '@angular/core';
2+
import { RouterModule } from '@angular/router';
3+
import { NxWelcomeComponent } from './nx-welcome.component';
24

35
@Component({
4-
selector: 'angular-architects-root',
6+
standalone: true,
7+
imports: [NxWelcomeComponent, RouterModule],
8+
selector: 'mfe1-app-root',
59
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.css'],
10+
styleUrl: './app.component.css',
711
})
812
export class AppComponent {
913
title = 'mfe1';

apps/mfe1/src/app/app.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { ApplicationConfig } from '@angular/core';
2+
import { provideRouter } from '@angular/router';
3+
import { appRoutes } from './app.routes';
4+
5+
export const appConfig: ApplicationConfig = {
6+
providers: [provideRouter(appRoutes)],
7+
};

apps/mfe1/src/app/app.module.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/mfe1/src/app/app.routes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { Route } from '@angular/router';
2+
3+
export const appRoutes: Route[] = [];

0 commit comments

Comments
 (0)