Skip to content

Commit f3be3ee

Browse files
committed
feat(nx): upgrade nx 20 and angular 19
1 parent bdc6d9e commit f3be3ee

File tree

143 files changed

+13819
-14031
lines changed

Some content is hidden

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

143 files changed

+13819
-14031
lines changed

.eslintrc.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9+
"@angular-eslint/no-host-metadata-property": "off",
910
"@nx/enforce-module-boundaries": [
1011
"error",
1112
{
@@ -18,12 +19,6 @@
1819
}
1920
]
2021
}
21-
],
22-
"@angular-eslint/no-host-metadata-property": [
23-
"error",
24-
{
25-
"allowStatic": true
26-
}
2722
]
2823
}
2924
},

apps/angular/1-projection/project.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"tags": [],
88
"targets": {
99
"build": {
10-
"executor": "@angular-devkit/build-angular:application",
10+
"executor": "@angular-devkit/build-angular:browser",
1111
"outputs": ["{options.outputPath}"],
1212
"options": {
1313
"outputPath": "dist/apps/angular/1-projection",
1414
"index": "apps/angular/1-projection/src/index.html",
15-
"browser": "apps/angular/1-projection/src/main.ts",
15+
"main": "apps/angular/1-projection/src/main.ts",
1616
"polyfills": ["apps/angular/1-projection/src/polyfills.ts"],
1717
"tsConfig": "apps/angular/1-projection/tsconfig.app.json",
1818
"inlineStyleLanguage": "scss",
@@ -41,7 +41,9 @@
4141
"outputHashing": "all"
4242
},
4343
"development": {
44+
"buildOptimizer": false,
4445
"optimization": false,
46+
"vendorChunk": true,
4547
"extractLicenses": false,
4648
"sourceMap": true,
4749
"namedChunks": true

apps/angular/1-projection/src/app/app.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ import { TeacherCardComponent } from './component/teacher-card/teacher-card.comp
77
selector: 'app-root',
88
template: `
99
<div class="grid grid-cols-3 gap-3">
10-
<app-teacher-card></app-teacher-card>
11-
<app-student-card></app-student-card>
12-
<app-city-card></app-city-card>
10+
<app-teacher-card />
11+
<app-student-card />
12+
<app-city-card />
1313
</div>
1414
`,
15-
standalone: true,
1615
imports: [TeacherCardComponent, StudentCardComponent, CityCardComponent],
1716
})
1817
export class AppComponent {}

apps/angular/1-projection/src/app/component/city-card/city-card.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component, OnInit } from '@angular/core';
33
@Component({
44
selector: 'app-city-card',
55
template: 'TODO City',
6-
standalone: true,
76
imports: [],
87
})
98
export class CityCardComponent implements OnInit {

apps/angular/1-projection/src/app/component/student-card/student-card.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { CardComponent } from '../../ui/card/card.component';
1313
[type]="cardType"
1414
customClass="bg-light-green"></app-card>
1515
`,
16-
standalone: true,
1716
styles: [
1817
`
1918
::ng-deep .bg-light-green {

apps/angular/1-projection/src/app/component/teacher-card/teacher-card.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { CardComponent } from '../../ui/card/card.component';
2020
}
2121
`,
2222
],
23-
standalone: true,
2423
imports: [CardComponent],
2524
})
2625
export class TeacherCardComponent implements OnInit {

apps/angular/1-projection/src/app/ui/card/card.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import { ListItemComponent } from '../list-item/list-item.component';
3636
</button>
3737
</div>
3838
`,
39-
standalone: true,
4039
imports: [NgIf, NgFor, ListItemComponent],
4140
})
4241
export class CardComponent {

apps/angular/1-projection/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { bootstrapApplication } from '@angular/platform-browser';
22
import { AppComponent } from './app/app.component';
33

4-
bootstrapApplication(AppComponent);
4+
bootstrapApplication(AppComponent).catch((err) => console.error(err));

apps/angular/10-utility-wrapper-pipe/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component } from '@angular/core';
33
import { PersonUtils } from './person.utils';
44

55
@Component({
6-
standalone: true,
76
imports: [NgFor],
87
selector: 'app-root',
98
template: `

apps/angular/13-highly-customizable-css/src/app/page.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { TextComponent } from './text.component';
55

66
@Component({
77
selector: 'page',
8-
standalone: true,
98
imports: [TextStaticComponent, TextComponent],
109
template: `
1110
<static-text></static-text>

apps/angular/13-highly-customizable-css/src/app/static-text.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export type StaticTextType = 'normal' | 'warning' | 'error';
66

77
@Component({
88
selector: 'static-text',
9-
standalone: true,
109
imports: [TextComponent],
1110
template: `
1211
<text [font]="font" [color]="color">This is a static text</text>

apps/angular/16-master-dependency-injection/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export class ProductDirective {
2323
}
2424

2525
@Component({
26-
standalone: true,
2726
imports: [TableComponent, CurrencyPipe, AsyncPipe, NgFor, ProductDirective],
2827
providers: [CurrencyService],
2928
selector: 'app-root',

apps/angular/21-anchor-navigation/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { RouterOutlet } from '@angular/router';
33

44
@Component({
5-
standalone: true,
65
imports: [RouterOutlet],
76
selector: 'app-root',
87
template: `

apps/angular/21-anchor-navigation/src/app/foo.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { NavButtonComponent } from './nav-button.component';
33

44
@Component({
5-
standalone: true,
65
imports: [NavButtonComponent],
76
selector: 'app-foo',
87
template: `

apps/angular/21-anchor-navigation/src/app/home.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { NavButtonComponent } from './nav-button.component';
33

44
@Component({
5-
standalone: true,
65
imports: [NavButtonComponent],
76
selector: 'app-home',
87
template: `

apps/angular/22-router-input/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { FormControl, ReactiveFormsModule } from '@angular/forms';
33
import { RouterLink, RouterModule } from '@angular/router';
44

55
@Component({
6-
standalone: true,
76
imports: [RouterLink, RouterModule, ReactiveFormsModule],
87
selector: 'app-root',
98
template: `

apps/angular/22-router-input/src/app/home.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component } from '@angular/core';
22
@Component({
33
selector: 'app-home',
4-
standalone: true,
54
imports: [],
65
template: `
76
<div>Home</div>

apps/angular/22-router-input/src/app/test.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { map } from 'rxjs';
55

66
@Component({
77
selector: 'app-subscription',
8-
standalone: true,
98
imports: [AsyncPipe],
109
template: `
1110
<div>TestId: {{ testId$ | async }}</div>

apps/angular/3-directive-enhancement/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ interface Person {
66
}
77

88
@Component({
9-
standalone: true,
109
imports: [NgFor, NgIf],
1110
selector: 'app-root',
1211
template: `

apps/angular/31-module-to-standalone/src/app/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ import { Component } from '@angular/core';
2525
host: {
2626
class: 'flex flex-col p-4 gap-3',
2727
},
28+
standalone: false,
2829
})
2930
export class AppComponent {}

apps/angular/32-change-detection-bug/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { RouterOutlet } from '@angular/router';
33

44
@Component({
5-
standalone: true,
65
imports: [RouterOutlet],
76
selector: 'app-root',
87
template: `

apps/angular/32-change-detection-bug/src/app/main-navigation.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ interface MenuItem {
1010

1111
@Component({
1212
selector: 'app-nav',
13-
standalone: true,
1413
imports: [RouterLink, RouterLinkActive, NgFor],
1514
template: `
1615
<ng-container *ngFor="let menu of menus">
@@ -38,7 +37,6 @@ export class NavigationComponent {
3837
}
3938

4039
@Component({
41-
standalone: true,
4240
imports: [NavigationComponent, NgIf, AsyncPipe],
4341
template: `
4442
<ng-container *ngIf="info$ | async as info">

apps/angular/33-decoupling-components/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { BtnHelmetDirective } from '@angular-challenges/decoupling/helmet';
33
import { Component } from '@angular/core';
44

55
@Component({
6-
standalone: true,
76
imports: [BtnDisabledDirective, BtnHelmetDirective],
87
selector: 'app-root',
98
template: `

apps/angular/39-injection-token/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { RouterLink, RouterOutlet } from '@angular/router';
33

44
@Component({
5-
standalone: true,
65
imports: [RouterOutlet, RouterLink],
76
selector: 'app-root',
87
template: `

apps/angular/39-injection-token/src/app/phone.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { TimerContainerComponent } from './timer-container.component';
33

44
@Component({
55
selector: 'app-phone',
6-
standalone: true,
76
imports: [TimerContainerComponent],
87
template: `
98
<div class="flex gap-2">

apps/angular/39-injection-token/src/app/timer-container.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { DEFAULT_TIMER } from './data';
33
import { TimerComponent } from './timer.component';
44
@Component({
55
selector: 'timer-container',
6-
standalone: true,
76
imports: [TimerComponent],
87
template: `
98
<div class="flex gap-2">

apps/angular/39-injection-token/src/app/video.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { TimerContainerComponent } from './timer-container.component';
33

44
@Component({
55
selector: 'app-video',
6-
standalone: true,
76
imports: [TimerContainerComponent],
87
template: `
98
<div class="flex gap-2">

apps/angular/4-typed-context-outlet/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { ListComponent } from './list.component';
44
import { PersonComponent } from './person.component';
55

66
@Component({
7-
standalone: true,
87
imports: [NgTemplateOutlet, PersonComponent, ListComponent],
98
selector: 'app-root',
109
template: `

apps/angular/4-typed-context-outlet/src/app/list.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99

1010
@Component({
1111
selector: 'list',
12-
standalone: true,
1312
imports: [CommonModule],
1413
template: `
1514
<div *ngFor="let item of list; index as i">

apps/angular/4-typed-context-outlet/src/app/person.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ interface Person {
77
}
88

99
@Component({
10-
standalone: true,
1110
imports: [NgTemplateOutlet],
1211
selector: 'person',
1312
template: `

apps/angular/44-view-transition/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
22
import { RouterOutlet } from '@angular/router';
33

44
@Component({
5-
standalone: true,
65
imports: [RouterOutlet],
76
selector: 'app-root',
87
template: `

apps/angular/44-view-transition/src/app/blog/blog.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { ThumbnailComponent } from './thumbnail.component';
44

55
@Component({
66
selector: 'blog',
7-
standalone: true,
87
imports: [ThumbnailComponent],
98
template: `
109
<div

apps/angular/44-view-transition/src/app/blog/thumbnail-header.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component, input } from '@angular/core';
33

44
@Component({
55
selector: 'thumbnail-header',
6-
standalone: true,
76
imports: [NgOptimizedImage],
87
template: `
98
<div class="flex gap-3">

apps/angular/44-view-transition/src/app/blog/thumbnail.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { ThumbnailHeaderComponent } from './thumbnail-header.component';
66

77
@Component({
88
selector: 'blog-thumbnail',
9-
standalone: true,
109
imports: [NgOptimizedImage, ThumbnailHeaderComponent, RouterLinkWithHref],
1110
template: `
1211
<a [routerLink]="['post', post().id]">

apps/angular/44-view-transition/src/app/post/post-header.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component, input } from '@angular/core';
33

44
@Component({
55
selector: 'post-header',
6-
standalone: true,
76
imports: [NgOptimizedImage],
87
template: `
98
<div class="relative">

apps/angular/44-view-transition/src/app/post/post.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { PostHeaderComponent } from './post-header.component';
1212

1313
@Component({
1414
selector: 'post',
15-
standalone: true,
1615
imports: [
1716
ThumbnailHeaderComponent,
1817
NgOptimizedImage,

apps/angular/45-react-in-angular/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { PostComponent } from './react/post.component';
44
type Post = { title: string; description: string };
55

66
@Component({
7-
standalone: true,
87
imports: [PostComponent],
98
selector: 'app-root',
109
template: `

apps/angular/46-simple-animations/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
standalone: true,
54
imports: [],
65
selector: 'app-root',
76
styles: `

apps/angular/5-crud-application/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Component, OnInit } from '@angular/core';
44
import { randText } from '@ngneat/falso';
55

66
@Component({
7-
standalone: true,
87
imports: [CommonModule],
98
selector: 'app-root',
109
template: `

apps/angular/52-lazy-load-component/src/app/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { Component, signal } from '@angular/core';
1616
}
1717
</div>
1818
`,
19+
standalone: false,
1920
})
2021
export class AppComponent {
2122
topLoaded = signal(false);

apps/angular/52-lazy-load-component/src/app/placeholder.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ import { Component } from '@angular/core';
1313
height: 50%;
1414
}
1515
`,
16+
standalone: false,
1617
})
1718
export class PlaceholderComponent {}

apps/angular/52-lazy-load-component/src/app/top.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ import { Component } from '@angular/core';
1313
height: 50%;
1414
}
1515
`,
16+
standalone: false,
1617
})
1718
export class TopComponent {}

apps/angular/55-back-button-navigation/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { RouterLink, RouterOutlet } from '@angular/router';
33

44
@Component({
5-
standalone: true,
65
imports: [RouterOutlet, RouterLink],
76
selector: 'app-root',
87
templateUrl: './app.component.html',

apps/angular/55-back-button-navigation/src/app/dialog/dialog.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
@Component({
1212
selector: 'app-dialog-dialog',
1313
templateUrl: './dialog.component.html',
14-
standalone: true,
1514
imports: [
1615
MatButtonModule,
1716
MatDialogActions,

0 commit comments

Comments
 (0)