Skip to content

Commit 50ea275

Browse files
author
danny.collodet
committed
Update Angular 18.0.1
1 parent 592597c commit 50ea275

30 files changed

+15286
-180
lines changed

.dockerignore

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

.eslintrc.json

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
44
/dist

Dockerfile

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Angular 17 Example SSR
1+
# Angular 18 Example SSR
22

3-
> An Angular starter kit featuring [Angular 17.2.3](https://angular.io), [Angular CLI 17.2.2](https://cli.angular.io/)
3+
> An Angular starter kit featuring [Angular 18.0.1](https://angular.io), [Angular CLI 18.0.2](https://cli.angular.io/)
44
55
> it's part of a repo series designed to create a Progressive Web App with Angular
66

angular.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
],
2222
"tsConfig": "tsconfig.app.json",
2323
"assets": [
24-
"src/favicon.ico",
24+
{
25+
"glob": "**/*",
26+
"input": "public"
27+
},
2528
"src/assets"
2629
],
2730
"styles": [
@@ -44,13 +47,13 @@
4447
"budgets": [
4548
{
4649
"type": "initial",
47-
"maximumWarning": "1mb",
48-
"maximumError": "1mb"
50+
"maximumWarning": "500kB",
51+
"maximumError": "1MB"
4952
},
5053
{
5154
"type": "anyComponentStyle",
52-
"maximumWarning": "4kb",
53-
"maximumError": "4kb"
55+
"maximumWarning": "2kB",
56+
"maximumError": "4kB"
5457
}
5558
],
5659
"outputHashing": "all"
@@ -82,10 +85,7 @@
8285
"defaultConfiguration": "development"
8386
},
8487
"extract-i18n": {
85-
"builder": "@angular-devkit/build-angular:extract-i18n",
86-
"options": {
87-
"buildTarget": "angular-starter:build"
88-
}
88+
"builder": "@angular-devkit/build-angular:extract-i18n"
8989
},
9090
"test": {
9191
"builder": "@angular-devkit/build-angular:karma",
@@ -96,8 +96,10 @@
9696
],
9797
"tsConfig": "tsconfig.spec.json",
9898
"assets": [
99-
"src/favicon.ico",
100-
"src/assets"
99+
{
100+
"glob": "**/*",
101+
"input": "public"
102+
}
101103
],
102104
"styles": [
103105
"src/styles.css"
@@ -122,4 +124,4 @@
122124
"@angular-eslint/schematics"
123125
]
124126
}
125-
}
127+
}

eslint.config.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// @ts-check
2+
const eslint = require("@eslint/js");
3+
const tseslint = require("typescript-eslint");
4+
const angular = require("angular-eslint");
5+
6+
module.exports = tseslint.config(
7+
{
8+
files: ["**/*.ts"],
9+
extends: [
10+
eslint.configs.recommended,
11+
...tseslint.configs.recommended,
12+
...tseslint.configs.stylistic,
13+
...angular.configs.tsRecommended,
14+
],
15+
processor: angular.processInlineTemplates,
16+
rules: {
17+
"@angular-eslint/directive-selector": [
18+
"error",
19+
{
20+
type: "attribute",
21+
prefix: "app",
22+
style: "camelCase",
23+
},
24+
],
25+
"@angular-eslint/component-selector": [
26+
"error",
27+
{
28+
type: "element",
29+
prefix: "app",
30+
style: "kebab-case",
31+
},
32+
],
33+
"no-undefined": "error",
34+
"no-var": "error",
35+
"prefer-const": "error",
36+
"func-names": "error",
37+
"id-length": "error",
38+
"newline-before-return": "error",
39+
"space-before-blocks": "error",
40+
"no-alert": "error"
41+
},
42+
},
43+
{
44+
files: ["**/*.html"],
45+
extends: [
46+
...angular.configs.templateRecommended,
47+
...angular.configs.templateAccessibility,
48+
],
49+
rules: {},
50+
}
51+
);

nginx.conf

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
user www-data;
2+
worker_processes auto;
3+
pid /run/nginx.pid;
4+
error_log /var/log/nginx/error.log;
5+
include /etc/nginx/modules-enabled/*.conf;
6+
7+
events {
8+
worker_connections 768;
9+
}
10+
11+
http {
12+
sendfile on;
13+
tcp_nopush on;
14+
types_hash_max_size 2048;
15+
16+
include /etc/nginx/mime.types;
17+
default_type application/octet-stream;
18+
19+
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
20+
ssl_prefer_server_ciphers on;
21+
22+
access_log /var/log/nginx/access.log;
23+
gzip on;
24+
include /etc/nginx/conf.d/*.conf;
25+
server {
26+
listen 80 default_server;
27+
listen [::]:80 default_server;
28+
29+
root /var/www/html;
30+
index index.html index.htm index.nginx-debian.html;
31+
server_name _;
32+
location / {
33+
try_files $uri $uri/ =404;
34+
}
35+
36+
}
37+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy