Skip to content

Commit 992238e

Browse files
committed
Update Angular 17.0.4 & Angular CLI 17.0.3
1 parent ca21014 commit 992238e

File tree

88 files changed

+25672
-15560
lines changed

Some content is hidden

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

88 files changed

+25672
-15560
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Angular 16 & React 18 Examples Lazy Loading
1+
# Angular 17 & React 18 Examples Lazy Loading
22

33
<table>
44
<tr>
@@ -13,7 +13,7 @@ it's part of a repo series designed
1313
to create a **Web Application with Angular 16**
1414

1515

16-
* Featuring [**Angular 16.2.3**](https://github.com/angular/angular/releases) & [**Angular CLI 16.2.2**](https://github.com/angular/angular-cli/releases/)
16+
* Featuring [**Angular 17.0.4**](https://github.com/angular/angular/releases) & [**Angular CLI 17.0.3**](https://github.com/angular/angular-cli/releases/)
1717

1818

1919
* See the [**Live demo**](#angular-live-demo), Test the repo with [**Quick start**](#angular-quick-start) and for more information Read the step by step [**Tutorial**](#angular-tutorial) or read the [**Getting started**](#angular-getting-started)

angular/.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"id-length": "error",
5050
"newline-before-return": "error",
5151
"space-before-blocks": "error",
52-
"no-alert": "error"
52+
"no-alert": "error"
5353
}
5454
}
5555
]

angular/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
### Installation
3+
* `npm install` (installing dependencies)
4+
* `npm outdated` (verifying dependencies)
5+
6+
### Developpement
7+
* `npm run start`
8+
* in your browser [http://localhost:4200](http://localhost:4200)
9+
10+
## Linter
11+
* `npm run lint`
12+
13+
## Tests
14+
* `npm run test`
15+
* `npm run coverage`
16+
17+
### Compilation
18+
* `npm run build` ( without SSR)
19+
20+
### Production
21+
* `npm run serve`
22+
* in your browser [http://localhost:4000](http://localhost:4000)
23+
24+
25+
### Author
26+
* Author : danny

angular/angular.json

+12-15
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"prefix": "app",
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular-devkit/build-angular:application",
1515
"options": {
1616
"outputPath": "dist/angular-starter",
1717
"index": "src/index.html",
18-
"main": "src/main.ts",
18+
"browser": "src/main.ts",
1919
"polyfills": [
2020
"zone.js"
2121
],
@@ -43,21 +43,18 @@
4343
"maximumError": "4kb"
4444
}
4545
],
46-
"fileReplacements": [
47-
{
48-
"replace": "src/environments/environment.ts",
49-
"with": "src/environments/environment.prod.ts"
50-
}
51-
],
5246
"outputHashing": "all"
5347
},
5448
"development": {
55-
"buildOptimizer": false,
5649
"optimization": false,
57-
"vendorChunk": true,
5850
"extractLicenses": false,
5951
"sourceMap": true,
60-
"namedChunks": true
52+
"fileReplacements": [
53+
{
54+
"replace": "src/environments/environment.ts",
55+
"with": "src/environments/environment.development.ts"
56+
}
57+
]
6158
}
6259
},
6360
"defaultConfiguration": "production"
@@ -66,18 +63,18 @@
6663
"builder": "@angular-devkit/build-angular:dev-server",
6764
"configurations": {
6865
"production": {
69-
"browserTarget": "angular-starter:build:production"
66+
"buildTarget": "angular-starter:build:production"
7067
},
7168
"development": {
72-
"browserTarget": "angular-starter:build:development"
69+
"buildTarget": "angular-starter:build:development"
7370
}
7471
},
7572
"defaultConfiguration": "development"
7673
},
7774
"extract-i18n": {
7875
"builder": "@angular-devkit/build-angular:extract-i18n",
7976
"options": {
80-
"browserTarget": "angular-starter:build"
77+
"buildTarget": "angular-starter:build"
8178
}
8279
},
8380
"test": {
@@ -115,4 +112,4 @@
115112
"@angular-eslint/schematics"
116113
]
117114
}
118-
}
115+
}

angular/nginx.conf

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
user www-data;
22
worker_processes auto;
33
pid /run/nginx.pid;
4+
error_log /var/log/nginx/error.log;
45
include /etc/nginx/modules-enabled/*.conf;
56

67
events {
@@ -10,35 +11,27 @@ events {
1011
http {
1112
sendfile on;
1213
tcp_nopush on;
13-
tcp_nodelay on;
14-
keepalive_timeout 65;
1514
types_hash_max_size 2048;
15+
1616
include /etc/nginx/mime.types;
1717
default_type application/octet-stream;
1818

1919
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
2020
ssl_prefer_server_ciphers on;
2121

2222
access_log /var/log/nginx/access.log;
23-
error_log /var/log/nginx/error.log;
24-
2523
gzip on;
26-
2724
include /etc/nginx/conf.d/*.conf;
28-
2925
server {
3026
listen 80 default_server;
3127
listen [::]:80 default_server;
28+
3229
root /var/www/html;
3330
index index.html index.htm index.nginx-debian.html;
34-
3531
server_name _;
36-
3732
location / {
3833
try_files $uri $uri/ =404;
3934
}
4035

4136
}
42-
43-
}
44-
37+
}

0 commit comments

Comments
 (0)