Skip to content

Commit 2b532c5

Browse files
committed
ng update
1 parent 5dbed58 commit 2b532c5

File tree

10 files changed

+90
-82
lines changed

10 files changed

+90
-82
lines changed

HeroesDemo/angular.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular-devkit/build-angular:application",
1919
"options": {
20-
"outputPath": "dist",
20+
"outputPath": {
21+
"base": "dist"
22+
},
2123
"index": "src/index.html",
22-
"main": "src/main.ts",
2324
"polyfills": [
2425
"zone.js",
2526
"zone.js/testing"
@@ -37,11 +38,14 @@
3738
"styles": [
3839
"src/styles.css"
3940
],
40-
"scripts": []
41+
"scripts": [],
42+
"browser": "src/main.ts"
4143
},
4244
"configurations": {
4345
"production": {
44-
"outputPath": "../ngdist/prod/",
46+
"outputPath": {
47+
"base": "../ngdist/prod/"
48+
},
4549
"budgets": [
4650
{
4751
"type": "initial",
@@ -63,23 +67,21 @@
6367
"outputHashing": "all"
6468
},
6569
"development": {
66-
"buildOptimizer": false,
67-
"optimization": false,
68-
"vendorChunk": true,
70+
"optimization": false,
6971
"extractLicenses": false,
7072
"sourceMap": true,
7173
"namedChunks": true
7274
},
7375
"dev": {
74-
"outputPath": "../ngdist/dev/",
76+
"outputPath": {
77+
"base": "../ngdist/dev/"
78+
},
7579

7680
"index": {
7781
"input": "src/index.html",
7882
"output": "./index.html"
7983
},
80-
"buildOptimizer": false,
8184
"optimization": false,
82-
"vendorChunk": true,
8385
"extractLicenses": false,
8486
"sourceMap": true,
8587
"namedChunks": true
@@ -91,18 +93,18 @@
9193
"builder": "@angular-devkit/build-angular:dev-server",
9294
"configurations": {
9395
"production": {
94-
"browserTarget": "angular.io-example:build:production"
96+
"buildTarget": "angular.io-example:build:production"
9597
},
9698
"development": {
97-
"browserTarget": "angular.io-example:build:development"
99+
"buildTarget": "angular.io-example:build:development"
98100
}
99101
},
100102
"defaultConfiguration": "development"
101103
},
102104
"extract-i18n": {
103105
"builder": "@angular-devkit/build-angular:extract-i18n",
104106
"options": {
105-
"browserTarget": "angular.io-example:build"
107+
"buildTarget": "angular.io-example:build"
106108
}
107109
},
108110
"test": {

HeroesDemo/package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
{
2-
"name": "angular.io-example",
3-
"version": "0.0.0",
4-
"description": "Example project from an angular.io guide.",
5-
"license": "MIT",
6-
"scripts": {
7-
"ng": "ng",
8-
"start": "ng serve",
9-
"build": "ng build",
10-
"watch": "ng build --watch --configuration development",
11-
"test": "ng test",
12-
"e2e": "ng e2e"
13-
},
14-
"private": true,
15-
"dependencies": {
16-
"@angular/animations": "18.2.7",
17-
"@angular/cdk": "18.2.7",
18-
"@angular/common": "18.2.7",
19-
"@angular/compiler": "18.2.7",
20-
"@angular/core": "18.2.7",
21-
"@angular/forms": "18.2.7",
22-
"@angular/material": "18.2.7",
23-
"@angular/material-moment-adapter": "18.2.7",
24-
"@angular/platform-browser": "18.2.7",
25-
"@angular/platform-browser-dynamic": "18.2.7",
26-
"@angular/router": "18.2.7",
27-
"rxjs": "7.8.1",
28-
"tslib": "2.7.0",
29-
"zone.js": "0.15.0"
30-
},
31-
"devDependencies": {
32-
"@angular-devkit/build-angular": "18.2.7",
33-
"@angular/cli": "18.2.7",
34-
"@angular/compiler-cli": "18.2.7",
35-
"@types/jasmine": "5.1.4",
36-
"@types/node": "22.7.4",
37-
"copyfiles": "2.4.1",
38-
"jasmine-core": "5.3.0",
39-
"jasmine-marbles": "0.9.2",
40-
"jasmine-spec-reporter": "~7.0.0",
41-
"karma": "6.4.4",
42-
"karma-chrome-launcher": "3.2.0",
43-
"karma-coverage": "2.2.1",
44-
"karma-jasmine": "~5.1.0",
45-
"karma-jasmine-html-reporter": "2.1.0",
46-
"protractor": "~7.0.0",
47-
"ts-node": "10.9.2",
48-
"typescript": "^5.5.4"
49-
}
2+
"name": "angular.io-example",
3+
"version": "0.0.0",
4+
"description": "Example project from an angular.io guide.",
5+
"license": "MIT",
6+
"scripts": {
7+
"ng": "ng",
8+
"start": "ng serve",
9+
"build": "ng build",
10+
"watch": "ng build --watch --configuration development",
11+
"test": "ng test",
12+
"e2e": "ng e2e"
13+
},
14+
"private": true,
15+
"dependencies": {
16+
"@angular/animations": "19.2.11",
17+
"@angular/cdk": "19.2.16",
18+
"@angular/common": "19.2.11",
19+
"@angular/compiler": "19.2.11",
20+
"@angular/core": "19.2.11",
21+
"@angular/forms": "19.2.11",
22+
"@angular/material": "19.2.16",
23+
"@angular/material-moment-adapter": "19.2.16",
24+
"@angular/platform-browser": "19.2.11",
25+
"@angular/platform-browser-dynamic": "19.2.11",
26+
"@angular/router": "19.2.11",
27+
"rxjs": "7.8.1",
28+
"tslib": "2.7.0",
29+
"zone.js": "0.15.0"
30+
},
31+
"devDependencies": {
32+
"@angular-devkit/build-angular": "19.2.12",
33+
"@angular/cli": "19.2.12",
34+
"@angular/compiler-cli": "19.2.11",
35+
"@types/jasmine": "5.1.8",
36+
"@types/node": "22.15.18",
37+
"copyfiles": "2.4.1",
38+
"jasmine-core": "5.7.1",
39+
"jasmine-marbles": "0.9.2",
40+
"jasmine-spec-reporter": "~7.0.0",
41+
"karma": "6.4.4",
42+
"karma-chrome-launcher": "3.2.0",
43+
"karma-coverage": "2.2.1",
44+
"karma-jasmine": "~5.1.0",
45+
"karma-jasmine-html-reporter": "2.1.0",
46+
"protractor": "~7.0.0",
47+
"ts-node": "10.9.2",
48+
"typescript": "^5.5.4"
49+
}
5050
}

HeroesDemo/src/app/app.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'app-root',
5-
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.css']
4+
selector: 'app-root',
5+
templateUrl: './app.component.html',
6+
styleUrls: ['./app.component.css'],
7+
standalone: false
78
})
89
export class AppComponent {
910
title = 'Tour of Heroes';

HeroesDemo/src/app/dashboard/dashboard.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Component, Inject, OnInit } from '@angular/core';
22
import * as namespaces from '../../clientapi/WebApiCoreNG2FormGroupClientAuto';
33

44
@Component({
5-
selector: 'app-dashboard',
6-
templateUrl: './dashboard.component.html',
7-
styleUrls: [ './dashboard.component.css' ]
5+
selector: 'app-dashboard',
6+
templateUrl: './dashboard.component.html',
7+
styleUrls: ['./dashboard.component.css'],
8+
standalone: false
89
})
910
export class DashboardComponent implements OnInit {
1011
heroes: namespaces.DemoWebApi_Controllers_Client.Hero[] = [];

HeroesDemo/src/app/hero-detail/hero-detail.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ export function CreateHeroWithNestedFormGroup() {
1616
return fg;
1717
}
1818

19-
@Component({
20-
selector: 'app-hero-detail',
21-
templateUrl: './hero-detail.component.html'
19+
@Component({
20+
selector: 'app-hero-detail',
21+
templateUrl: './hero-detail.component.html',
22+
standalone: false
2223
})
2324
export class HeroDetailComponent implements OnInit {
2425
hero?: DemoWebApi_Controllers_Client.Hero;

HeroesDemo/src/app/hero-search/hero-search.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { debounceTime, switchMap, distinctUntilChanged } from 'rxjs/operators';
66
import * as namespaces from '../../clientapi/WebApiCoreNG2FormGroupClientAuto';
77

88
@Component({
9-
selector: 'app-hero-search',
10-
templateUrl: 'hero-search.component.html',
11-
styleUrls: ['hero-search.component.css'],
9+
selector: 'app-hero-search',
10+
templateUrl: 'hero-search.component.html',
11+
styleUrls: ['hero-search.component.css'],
12+
standalone: false
1213
})
1314
export class HeroSearchComponent implements OnInit {
1415
heroes?: Observable<namespaces.DemoWebApi_Controllers_Client.Hero[] | null>;

HeroesDemo/src/app/heroes/heroes.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { Router } from '@angular/router';
33
import * as namespaces from '../../clientapi/WebApiCoreNG2FormGroupClientAuto';
44

55
@Component({
6-
selector: 'app-heroes',
7-
templateUrl: './heroes.component.html',
8-
styleUrls: ['./heroes.component.css']
6+
selector: 'app-heroes',
7+
templateUrl: './heroes.component.html',
8+
styleUrls: ['./heroes.component.css'],
9+
standalone: false
910
})
1011
export class HeroesComponent implements OnInit {
1112
heroes?: namespaces.DemoWebApi_Controllers_Client.Hero[];

HeroesDemo/src/app/messages/messages.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Component, OnInit } from '@angular/core';
22
import { MessageService } from '../message.service';
33

44
@Component({
5-
selector: 'app-messages',
6-
templateUrl: './messages.component.html',
7-
styleUrls: ['./messages.component.css']
5+
selector: 'app-messages',
6+
templateUrl: './messages.component.html',
7+
styleUrls: ['./messages.component.css'],
8+
standalone: false
89
})
910
export class MessagesComponent implements OnInit {
1011

HeroesDemo/startDev.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#Run prod build with dotnet hosting
22
Set-Location $PSScriptRoot
3-
dotnet-serve -d ../ngdist/dev -p 5200
3+
dotnet-serve -d ../ngdist/dev/browser -p 5200

HeroesDemo/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"baseUrl": "./",
66
"outDir": "./dist/out-tsc",
77
"forceConsistentCasingInFileNames": true,
8+
"esModuleInterop": true,
89
"strict": true,
910
"noImplicitOverride": true,
1011
"noPropertyAccessFromIndexSignature": true,
1112
"noImplicitReturns": true,
1213
"noFallthroughCasesInSwitch": true,
1314
"sourceMap": true,
1415
"declaration": false,
15-
"downlevelIteration": true,
1616
"experimentalDecorators": true,
1717
"moduleResolution": "node",
1818
"importHelpers": true,

0 commit comments

Comments
 (0)