Skip to content

Commit c709808

Browse files
author
danny.collodet
committed
Update angular 18.0.1 & React 18.3.1
1 parent 1a089db commit c709808

Some content is hidden

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

41 files changed

+9720
-6526
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Angular 17 & React 18 Examples PWA
1+
# Angular 18 & React 18 Examples PWA
22

33
<table>
44
<tr>
@@ -12,7 +12,7 @@ it's part of a repo series designed
1212

1313
to create a **Web Application with Angular 17**
1414

15-
* Featuring [**Angular 17.0.8**](https://github.com/angular/angular/releases) & [**Angular CLI 17.0.9**](https://github.com/angular/angular-cli/releases/)
15+
* Featuring [**Angular 18.0.1**](https://github.com/angular/angular/releases) & [**Angular CLI 18.0.2**](https://github.com/angular/angular-cli/releases/)
1616

1717

1818
* 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)
@@ -21,7 +21,7 @@ to create a **Web Application with Angular 17**
2121
to create a **Web Application with React 18**
2222

2323

24-
* Featuring [**React 18.2.0**](https://github.com/facebook/react/releases) & [**Create-react-app 5.0.1**](https://github.com/facebook/create-react-app/releases)
24+
* Featuring [**React 18.3.1**](https://github.com/facebook/react/releases) & [**Create-react-app 5.0.1**](https://github.com/facebook/create-react-app/releases)
2525

2626

2727

angular/.eslintrc.json

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

angular/.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

angular/README.md

Lines changed: 26 additions & 0 deletions
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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
],
2222
"tsConfig": "tsconfig.app.json",
2323
"assets": [
24-
"src/favicon.ico",
25-
"src/assets",
26-
"src/manifest.webmanifest"
24+
{
25+
"glob": "**/*",
26+
"input": "public"
27+
},
28+
"src/assets"
2729
],
2830
"styles": [
2931
"node_modules/@fortawesome/fontawesome-free/css/all.min.css",
@@ -45,13 +47,13 @@
4547
"budgets": [
4648
{
4749
"type": "initial",
48-
"maximumWarning": "1mb",
49-
"maximumError": "1mb"
50+
"maximumWarning": "500kB",
51+
"maximumError": "1MB"
5052
},
5153
{
5254
"type": "anyComponentStyle",
53-
"maximumWarning": "4kb",
54-
"maximumError": "4kb"
55+
"maximumWarning": "2kB",
56+
"maximumError": "4kB"
5557
}
5658
],
5759
"outputHashing": "all",
@@ -84,10 +86,7 @@
8486
"defaultConfiguration": "development"
8587
},
8688
"extract-i18n": {
87-
"builder": "@angular-devkit/build-angular:extract-i18n",
88-
"options": {
89-
"buildTarget": "angular-starter:build"
90-
}
89+
"builder": "@angular-devkit/build-angular:extract-i18n"
9190
},
9291
"test": {
9392
"builder": "@angular-devkit/build-angular:karma",
@@ -98,9 +97,10 @@
9897
],
9998
"tsConfig": "tsconfig.spec.json",
10099
"assets": [
101-
"src/favicon.ico",
102-
"src/assets",
103-
"src/manifest.webmanifest"
100+
{
101+
"glob": "**/*",
102+
"input": "public"
103+
}
104104
],
105105
"styles": [
106106
"src/styles.css"
@@ -125,4 +125,4 @@
125125
"@angular-eslint/schematics"
126126
]
127127
}
128-
}
128+
}

angular/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+
);

angular/ngsw-config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"updateMode": "prefetch",
2222
"resources": {
2323
"files": [
24-
"/assets/**",
25-
"/media/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
24+
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
2625
]
2726
}
2827
}

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