Skip to content

Commit 4d5f2db

Browse files
committed
chore(client): Update to files generated by Angular 18 CLI
1 parent ce49c3e commit 4d5f2db

File tree

13 files changed

+46
-130
lines changed

13 files changed

+46
-130
lines changed

client/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Client
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.2.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.0.3.
44

55
## Development server
66

@@ -24,4 +24,4 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To u
2424

2525
## Further help
2626

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.

client/angular.json

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
"schematics": {
99
"@schematics/angular:component": {
1010
"style": "scss"
11-
},
12-
"@schematics/angular:application": {
13-
"strict": true
1411
}
1512
},
1613
"root": "",
@@ -24,7 +21,8 @@
2421
"base": "dist"
2522
},
2623
"index": "src/index.html",
27-
"polyfills": ["src/polyfills.ts"],
24+
"browser": "src/main.ts",
25+
"polyfills": ["zone.js"],
2826
"tsConfig": "tsconfig.app.json",
2927
"inlineStyleLanguage": "scss",
3028
"assets": [
@@ -34,30 +32,23 @@
3432
}
3533
],
3634
"styles": [
37-
"../node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
35+
"../node_modules/@angular/material/prebuilt-themes/azure-blue.css",
3836
"src/styles.scss"
3937
],
40-
"scripts": [],
41-
"browser": "src/main.ts"
38+
"scripts": []
4239
},
4340
"configurations": {
4441
"production": {
4542
"budgets": [
4643
{
4744
"type": "initial",
48-
"maximumWarning": "500kb",
49-
"maximumError": "1mb"
45+
"maximumWarning": "500kB",
46+
"maximumError": "1MB"
5047
},
5148
{
5249
"type": "anyComponentStyle",
53-
"maximumWarning": "2kb",
54-
"maximumError": "4kb"
55-
}
56-
],
57-
"fileReplacements": [
58-
{
59-
"replace": "src/environments/environment.ts",
60-
"with": "src/environments/environment.prod.ts"
50+
"maximumWarning": "2kB",
51+
"maximumError": "4kB"
6152
}
6253
],
6354
"outputHashing": "all"
@@ -66,7 +57,12 @@
6657
"optimization": false,
6758
"extractLicenses": false,
6859
"sourceMap": true,
69-
"namedChunks": true
60+
"fileReplacements": [
61+
{
62+
"replace": "src/environments/environment.ts",
63+
"with": "src/environments/environment.development.ts"
64+
}
65+
]
7066
}
7167
},
7268
"defaultConfiguration": "production"
@@ -84,16 +80,12 @@
8480
"defaultConfiguration": "development"
8581
},
8682
"extract-i18n": {
87-
"builder": "@angular-devkit/build-angular:extract-i18n",
88-
"options": {
89-
"buildTarget": "client:build"
90-
}
83+
"builder": "@angular-devkit/build-angular:extract-i18n"
9184
},
9285
"test": {
9386
"builder": "@angular-devkit/build-angular:karma",
9487
"options": {
95-
"main": "src/test.ts",
96-
"polyfills": "src/polyfills.ts",
88+
"polyfills": ["zone.js", "zone.js/testing"],
9789
"tsConfig": "tsconfig.spec.json",
9890
"karmaConfig": "karma.conf.js",
9991
"inlineStyleLanguage": "scss",
@@ -104,16 +96,13 @@
10496
}
10597
],
10698
"styles": [
107-
"../node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
99+
"../node_modules/@angular/material/prebuilt-themes/azure-blue.css",
108100
"src/styles.scss"
109101
],
110102
"scripts": []
111103
}
112104
}
113105
}
114106
}
115-
},
116-
"cli": {
117-
"analytics": false
118107
}
119108
}

client/karma.conf.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ module.exports = function (config) {
3131
reporters: [{ type: 'html' }, { type: 'text-summary' }],
3232
},
3333
reporters: ['progress', 'kjhtml'],
34-
port: 9876,
35-
colors: true,
36-
logLevel: config.LOG_INFO,
37-
autoWatch: true,
3834
browsers: ['Chrome'],
39-
singleRun: false,
4035
restartOnFileChange: true,
4136
});
4237
};

client/src/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-toolbar color="primary">
1+
<mat-toolbar>
22
<span>angular-nest</span>
33
</mat-toolbar>
44

@@ -30,7 +30,7 @@
3030
{{ $exampleText | async }}
3131
</mat-card-content>
3232
<mat-card-actions align="end">
33-
<button (click)="getExampleText()" mat-button>Request</button>
33+
<button (click)="getExampleText()" mat-flat-button>Request</button>
3434
</mat-card-actions>
3535
</mat-card>
3636

@@ -50,7 +50,7 @@
5050
}
5151
</mat-card-content>
5252
<mat-card-actions align="end">
53-
<button (click)="getExampleArticle()" mat-button>Request</button>
53+
<button (click)="getExampleArticle()" mat-flat-button>Request</button>
5454
</mat-card-actions>
5555
</mat-card>
5656
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const environment = {};

client/src/environments/environment.prod.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
// This file can be replaced during build by using the `fileReplacements` array.
2-
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
3-
// The list of file replacements can be found in `angular.json`.
4-
5-
export const environment = {
6-
production: false,
7-
};
8-
9-
/*
10-
* For easier debugging in development mode, you can import the following file
11-
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12-
*
13-
* This import should be commented out in production mode because it will have a negative impact
14-
* on performance if an error is thrown.
15-
*/
16-
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
1+
export const environment = {};

client/src/main.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { enableProdMode, importProvidersFrom } from '@angular/core';
22
import { bootstrapApplication } from '@angular/platform-browser';
33
import { provideAnimations } from '@angular/platform-browser/animations';
4-
import { environment } from './environments/environment';
4+
import { environment } from './environments/environment.development';
55
import { AppComponent } from './app/app.component';
66
import { ApiModule } from 'src/.api-client/api.module';
77
import {
@@ -11,10 +11,6 @@ import {
1111
import { provideRouter } from '@angular/router';
1212
import { routes } from './app/app.routes';
1313

14-
if (environment.production) {
15-
enableProdMode();
16-
}
17-
1814
bootstrapApplication(AppComponent, {
1915
providers: [
2016
importProvidersFrom(

client/src/polyfills.ts

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

client/src/styles.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
/* You can add global styles to this file, and also import other style files */
22

3-
html, body { height: 100%; }
4-
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
3+
html,
4+
body {
5+
height: 100%;
6+
}
7+
body {
8+
margin: 0;
9+
font-family: Roboto, 'Helvetica Neue', sans-serif;
10+
}

0 commit comments

Comments
 (0)