Skip to content

Commit

Permalink
chore: rewrite for application in angular 18
Browse files Browse the repository at this point in the history
  • Loading branch information
luifr10 committed Oct 27, 2024
1 parent bc5225c commit 00d4992
Show file tree
Hide file tree
Showing 55 changed files with 14,603 additions and 16,860 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ trim_trailing_whitespace = true

[*.ts]
quote_type = single
ij_typescript_use_double_quotes = false

[*.md]
max_line_length = off
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Weather App CI

env:
NODE_VERSION: 18.14.0
NODE_VERSION: 22.10.0

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node18.12.0-chrome107
image: e2etesting/uuv:node-22-chrome
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{env.NODE_VERSION}}
Expand All @@ -28,7 +28,7 @@ jobs:
- name: E2E Tests
run: npx uuv e2e --generateHtmlReport --generateJunitReport || cat ./uuv/reports/e2e/junit-report.xml
- name: Test Report
uses: dorny/test-reporter@v1.9.0
uses: MichaelVoelkel/test-reporter@main
if: success() || failure()
with:
name: Report - E2E Tests - Playwright
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"configurations": [
{
"name": "ng serve",
"type": "pwa-chrome",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ WeatherApp est une application développée à l'aide du Framework Angular 14.<b
Cette application a pour objectif de servir de Bac à sable pour exercice, kata et coding dojos lorsque le contexte s'y prête.

## Installation
```shell
yarn install
```
ou

```shell
npm install
```
Expand Down
66 changes: 32 additions & 34 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,64 +8,54 @@
"schematics": {
"@schematics/angular:component": {
"style": "scss"
},
"@schematics/angular:application": {
"strict": true
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/weather-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets",
"src/.htaccess"
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.scss"
],
"scripts": [
]
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "500kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"maximumWarning": "2kB",
"maximumError": "4kB"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
"sourceMap": true
}
},
"defaultConfiguration": "production"
Expand All @@ -83,22 +73,30 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "weather-app:build"
}
"builder": "@angular-devkit/build-angular:extract-i18n"
},
"test": {
"builder": "@angular-builders/jest:run",
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"no-cache": true
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.scss"
],
"scripts": []
}
}
}
}
},
"cli": {
"analytics": false
}
}
1 change: 0 additions & 1 deletion jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom/extend-expect';
import 'jest-preset-angular/setup-jest';

Object.defineProperty(window, 'getComputedStyle', {
Expand Down
56 changes: 0 additions & 56 deletions karma.conf.js

This file was deleted.

Loading

0 comments on commit 00d4992

Please sign in to comment.