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>

0 commit comments

Comments
 (0)