Skip to content

Commit

Permalink
chore(workshop): migrate to Angular 17
Browse files Browse the repository at this point in the history
feat: migrate all workshop on the new code flow
  • Loading branch information
Nicoss54 committed Dec 2, 2023
1 parent df066ac commit 9557d90
Show file tree
Hide file tree
Showing 441 changed files with 8,461 additions and 7,130 deletions.
3 changes: 2 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length=150
max_line_length = 150

[*.md]
max_line_length = off
trim_trailing_whitespace = false
indent_size = 2

6 changes: 3 additions & 3 deletions .github/workflows/tp.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: TP CI Action

on: [push]
on: [ push ]

jobs:
build-and-run-tests:
Expand All @@ -12,10 +12,10 @@ jobs:
with:
fetch-depth: 0

- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"$schema": "https://json.schemastore.org/prettierrc",
"singleQuote": true,
"printWidth": 150,
"bracketSpacing": true,
Expand Down
19 changes: 9 additions & 10 deletions apps/01-hands-on-solution/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"prefix": "sfeir",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser-esbuild",
"executor": "@angular-devkit/build-angular:application",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/apps/01-hands-on-solution",
"index": "apps/01-hands-on-solution/src/index.html",
"main": "apps/01-hands-on-solution/src/main.ts",
"polyfills": "apps/01-hands-on-solution/src/polyfills.ts",
"browser": "apps/01-hands-on-solution/src/main.ts",
"polyfills": [
"apps/01-hands-on-solution/src/polyfills.ts"
],
"tsConfig": "apps/01-hands-on-solution/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -50,9 +52,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand All @@ -64,18 +64,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "01-hands-on-solution:build:production"
"buildTarget": "01-hands-on-solution:build:production"
},
"development": {
"browserTarget": "01-hands-on-solution:build:development"
"buildTarget": "01-hands-on-solution:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "01-hands-on-solution:build"
"buildTarget": "01-hands-on-solution:build"
}
},
"lint": {
Expand All @@ -93,8 +93,7 @@
"{workspaceRoot}/coverage/apps/01-hands-on-solution"
],
"options": {
"jestConfig": "apps/01-hands-on-solution/jest.config.ts",
"passWithNoTests": true
"jestConfig": "apps/01-hands-on-solution/jest.config.ts"
}
}
},
Expand Down
19 changes: 9 additions & 10 deletions apps/01-hands-on/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"prefix": "sfeir",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser-esbuild",
"executor": "@angular-devkit/build-angular:application",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/apps/01-hands-on",
"index": "apps/01-hands-on/src/index.html",
"main": "apps/01-hands-on/src/main.ts",
"polyfills": "apps/01-hands-on/src/polyfills.ts",
"browser": "apps/01-hands-on/src/main.ts",
"polyfills": [
"apps/01-hands-on/src/polyfills.ts"
],
"tsConfig": "apps/01-hands-on/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -50,9 +52,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand All @@ -64,18 +64,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "01-hands-on:build:production"
"buildTarget": "01-hands-on:build:production"
},
"development": {
"browserTarget": "01-hands-on:build:development"
"buildTarget": "01-hands-on:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "01-hands-on:build"
"buildTarget": "01-hands-on:build"
}
},
"lint": {
Expand All @@ -93,8 +93,7 @@
"{workspaceRoot}/coverage/apps/01-hands-on"
],
"options": {
"jestConfig": "apps/01-hands-on/jest.config.ts",
"passWithNoTests": true
"jestConfig": "apps/01-hands-on/jest.config.ts"
}
}
},
Expand Down
21 changes: 10 additions & 11 deletions apps/02-ngg-solution/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"prefix": "sfeir",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser-esbuild",
"executor": "@angular-devkit/build-angular:application",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/apps/02-ngg-solution",
"index": "apps/02-ngg-solution/src/index.html",
"main": "apps/02-ngg-solution/src/main.ts",
"polyfills": "apps/02-ngg-solution/src/polyfills.ts",
"browser": "apps/02-ngg-solution/src/main.ts",
"polyfills": [
"apps/02-ngg-solution/src/polyfills.ts"
],
"tsConfig": "apps/02-ngg-solution/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -50,9 +52,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand All @@ -64,18 +64,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "02-ngg-solution:build:production"
"buildTarget": "02-ngg-solution:build:production"
},
"development": {
"browserTarget": "02-ngg-solution:build:development"
"buildTarget": "02-ngg-solution:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "02-ngg-solution:build"
"buildTarget": "02-ngg-solution:build"
}
},
"lint": {
Expand All @@ -93,10 +93,9 @@
"{workspaceRoot}/coverage/apps/02-ngg-solution"
],
"options": {
"jestConfig": "apps/02-ngg-solution/jest.config.ts",
"passWithNoTests": true
"jestConfig": "apps/02-ngg-solution/jest.config.ts"
}
}
},
"tags": []
}
}
21 changes: 10 additions & 11 deletions apps/02-ngg/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"prefix": "sfeir",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser-esbuild",
"executor": "@angular-devkit/build-angular:application",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/apps/02-ngg",
"index": "apps/02-ngg/src/index.html",
"main": "apps/02-ngg/src/main.ts",
"polyfills": "apps/02-ngg/src/polyfills.ts",
"browser": "apps/02-ngg/src/main.ts",
"polyfills": [
"apps/02-ngg/src/polyfills.ts"
],
"tsConfig": "apps/02-ngg/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -50,9 +52,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand All @@ -64,18 +64,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "02-ngg:build:production"
"buildTarget": "02-ngg:build:production"
},
"development": {
"browserTarget": "02-ngg:build:development"
"buildTarget": "02-ngg:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "02-ngg:build"
"buildTarget": "02-ngg:build"
}
},
"lint": {
Expand All @@ -93,10 +93,9 @@
"{workspaceRoot}/coverage/apps/02-ngg"
],
"options": {
"jestConfig": "apps/02-ngg/jest.config.ts",
"passWithNoTests": true
"jestConfig": "apps/02-ngg/jest.config.ts"
}
}
},
"tags": []
}
}
19 changes: 9 additions & 10 deletions apps/03-cpt-hierarchy-solution/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"prefix": "sfeir",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser-esbuild",
"executor": "@angular-devkit/build-angular:application",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/apps/03-cpt-hierarchy-solution",
"index": "apps/03-cpt-hierarchy-solution/src/index.html",
"main": "apps/03-cpt-hierarchy-solution/src/main.ts",
"polyfills": "apps/03-cpt-hierarchy-solution/src/polyfills.ts",
"browser": "apps/03-cpt-hierarchy-solution/src/main.ts",
"polyfills": [
"apps/03-cpt-hierarchy-solution/src/polyfills.ts"
],
"tsConfig": "apps/03-cpt-hierarchy-solution/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -50,9 +52,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand All @@ -64,18 +64,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "03-cpt-hierarchy-solution:build:production"
"buildTarget": "03-cpt-hierarchy-solution:build:production"
},
"development": {
"browserTarget": "03-cpt-hierarchy-solution:build:development"
"buildTarget": "03-cpt-hierarchy-solution:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "03-cpt-hierarchy-solution:build"
"buildTarget": "03-cpt-hierarchy-solution:build"
}
},
"lint": {
Expand All @@ -93,8 +93,7 @@
"{workspaceRoot}/coverage/apps/03-cpt-hierarchy-solution"
],
"options": {
"jestConfig": "apps/03-cpt-hierarchy-solution/jest.config.ts",
"passWithNoTests": true
"jestConfig": "apps/03-cpt-hierarchy-solution/jest.config.ts"
}
}
},
Expand Down
Loading

0 comments on commit 9557d90

Please sign in to comment.