Skip to content

Commit c6c349e

Browse files
Updated the Angular project
1 parent b6e4e3f commit c6c349e

17 files changed

+6340
-5079
lines changed

Angular/.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

Angular/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db

Angular/README.md

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,59 @@
11
# MyWebApi
22

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

55
## Development server
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
7+
To start a local development server, run:
8+
9+
```bash
10+
ng serve
11+
```
12+
13+
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
814

915
## Code scaffolding
1016

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
17+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
18+
19+
```bash
20+
ng generate component component-name
21+
```
22+
23+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
24+
25+
```bash
26+
ng generate --help
27+
```
1228

13-
## Build
29+
## Building
1430

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
31+
To build the project run:
32+
33+
```bash
34+
ng build
35+
```
36+
37+
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
1638

1739
## Running unit tests
1840

19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
41+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
42+
43+
```bash
44+
ng test
45+
```
2046

2147
## Running end-to-end tests
2248

23-
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
49+
For end-to-end (e2e) testing, run:
50+
51+
```bash
52+
ng e2e
53+
```
54+
55+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
2456

25-
## Further help
57+
## Additional Resources
2658

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.
59+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.

Angular/angular.json

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
4-
"cli": {
5-
"packageManager": "npm",
6-
"analytics": "206b0045-8e84-421c-a84d-3f861a06beab"
7-
},
84
"newProjectRoot": "projects",
95
"projects": {
10-
"myWebApi": {
6+
"my-web-api": {
117
"projectType": "application",
128
"schematics": {},
139
"root": "",
1410
"sourceRoot": "src",
1511
"prefix": "app",
1612
"architect": {
1713
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular-devkit/build-angular:application",
1915
"options": {
2016
"outputPath": "dist/my-web-api",
2117
"index": "src/index.html",
22-
"main": "src/main.ts",
18+
"browser": "src/main.ts",
2319
"polyfills": [
2420
"zone.js"
2521
],
2622
"tsConfig": "tsconfig.app.json",
2723
"assets": [
28-
"src/favicon.ico",
29-
"src/assets"
24+
{
25+
"glob": "**/*",
26+
"input": "public"
27+
}
3028
],
3129
"styles": [
3230
"src/styles.css"
@@ -38,24 +36,21 @@
3836
"budgets": [
3937
{
4038
"type": "initial",
41-
"maximumWarning": "500kb",
42-
"maximumError": "1mb"
39+
"maximumWarning": "500kB",
40+
"maximumError": "1MB"
4341
},
4442
{
4543
"type": "anyComponentStyle",
46-
"maximumWarning": "2kb",
47-
"maximumError": "4kb"
44+
"maximumWarning": "4kB",
45+
"maximumError": "8kB"
4846
}
4947
],
5048
"outputHashing": "all"
5149
},
5250
"development": {
53-
"buildOptimizer": false,
5451
"optimization": false,
55-
"vendorChunk": true,
5652
"extractLicenses": false,
57-
"sourceMap": true,
58-
"namedChunks": true
53+
"sourceMap": true
5954
}
6055
},
6156
"defaultConfiguration": "production"
@@ -64,19 +59,16 @@
6459
"builder": "@angular-devkit/build-angular:dev-server",
6560
"configurations": {
6661
"production": {
67-
"browserTarget": "myWebApi:build:production"
62+
"buildTarget": "my-web-api:build:production"
6863
},
6964
"development": {
70-
"browserTarget": "myWebApi:build:development"
65+
"buildTarget": "my-web-api:build:development"
7166
}
7267
},
7368
"defaultConfiguration": "development"
7469
},
7570
"extract-i18n": {
76-
"builder": "@angular-devkit/build-angular:extract-i18n",
77-
"options": {
78-
"browserTarget": "myWebApi:build"
79-
}
71+
"builder": "@angular-devkit/build-angular:extract-i18n"
8072
},
8173
"test": {
8274
"builder": "@angular-devkit/build-angular:karma",
@@ -87,8 +79,10 @@
8779
],
8880
"tsConfig": "tsconfig.spec.json",
8981
"assets": [
90-
"src/favicon.ico",
91-
"src/assets"
82+
{
83+
"glob": "**/*",
84+
"input": "public"
85+
}
9286
],
9387
"styles": [
9488
"src/styles.css"
@@ -98,5 +92,8 @@
9892
}
9993
}
10094
}
95+
},
96+
"cli": {
97+
"analytics": false
10198
}
10299
}

0 commit comments

Comments
 (0)