Skip to content

Commit

Permalink
chore(workshop): migrate all executor to the new application one
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoss54 committed Nov 29, 2023
1 parent df066ac commit ef78c92
Show file tree
Hide file tree
Showing 102 changed files with 5,002 additions and 5,017 deletions.
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
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 ef78c92

Please sign in to comment.