From fcd125d001e472bb46a1a10dceb6aec2e553f0e5 Mon Sep 17 00:00:00 2001 From: thomas Date: Tue, 17 Oct 2023 23:02:33 +0200 Subject: [PATCH] feat(move): move lib --- apps/{ => angular}/pipe-hard/.eslintrc.json | 2 +- apps/{ => angular}/pipe-hard/README.md | 2 +- apps/{ => angular}/pipe-hard/project.json | 36 +++++++++--------- .../pipe-hard/src/app/app.component.ts | 0 .../pipe-hard/src/app/person.utils.ts | 0 .../pipe-hard/src/assets/.gitkeep | 0 .../src/environments/environment.prod.ts | 0 .../pipe-hard/src/environments/environment.ts | 0 apps/{ => angular}/pipe-hard/src/favicon.ico | Bin apps/{ => angular}/pipe-hard/src/index.html | 0 apps/{ => angular}/pipe-hard/src/main.ts | 0 apps/{ => angular}/pipe-hard/src/polyfills.ts | 0 apps/{ => angular}/pipe-hard/src/styles.scss | 0 .../{ => angular}/pipe-hard/tsconfig.app.json | 2 +- .../pipe-hard/tsconfig.editor.json | 0 apps/{ => angular}/pipe-hard/tsconfig.json | 2 +- .../challenges/angular/10-pipe-utility.md | 2 +- 17 files changed, 23 insertions(+), 23 deletions(-) rename apps/{ => angular}/pipe-hard/.eslintrc.json (94%) rename apps/{ => angular}/pipe-hard/README.md (88%) rename apps/{ => angular}/pipe-hard/project.json (60%) rename apps/{ => angular}/pipe-hard/src/app/app.component.ts (100%) rename apps/{ => angular}/pipe-hard/src/app/person.utils.ts (100%) rename apps/{ => angular}/pipe-hard/src/assets/.gitkeep (100%) rename apps/{ => angular}/pipe-hard/src/environments/environment.prod.ts (100%) rename apps/{ => angular}/pipe-hard/src/environments/environment.ts (100%) rename apps/{ => angular}/pipe-hard/src/favicon.ico (100%) rename apps/{ => angular}/pipe-hard/src/index.html (100%) rename apps/{ => angular}/pipe-hard/src/main.ts (100%) rename apps/{ => angular}/pipe-hard/src/polyfills.ts (100%) rename apps/{ => angular}/pipe-hard/src/styles.scss (100%) rename apps/{ => angular}/pipe-hard/tsconfig.app.json (88%) rename apps/{ => angular}/pipe-hard/tsconfig.editor.json (100%) rename apps/{ => angular}/pipe-hard/tsconfig.json (93%) diff --git a/apps/pipe-hard/.eslintrc.json b/apps/angular/pipe-hard/.eslintrc.json similarity index 94% rename from apps/pipe-hard/.eslintrc.json rename to apps/angular/pipe-hard/.eslintrc.json index 7eef2ce..8ebcbfd 100644 --- a/apps/pipe-hard/.eslintrc.json +++ b/apps/angular/pipe-hard/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../.eslintrc.json"], + "extends": ["../../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/apps/pipe-hard/README.md b/apps/angular/pipe-hard/README.md similarity index 88% rename from apps/pipe-hard/README.md rename to apps/angular/pipe-hard/README.md index 9f9fabd..d86000e 100644 --- a/apps/pipe-hard/README.md +++ b/apps/angular/pipe-hard/README.md @@ -5,7 +5,7 @@ ### Run Application ```bash -npx nx serve pipe-hard +npx nx serve angular-pipe-hard ``` ### Documentation and Instruction diff --git a/apps/pipe-hard/project.json b/apps/angular/pipe-hard/project.json similarity index 60% rename from apps/pipe-hard/project.json rename to apps/angular/pipe-hard/project.json index c094cd0..732c9fe 100644 --- a/apps/pipe-hard/project.json +++ b/apps/angular/pipe-hard/project.json @@ -1,25 +1,25 @@ { - "name": "pipe-hard", - "$schema": "../../node_modules/nx/schemas/project-schema.json", + "name": "angular-pipe-hard", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/pipe-hard/src", + "sourceRoot": "apps/angular/pipe-hard/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/pipe-hard", - "index": "apps/pipe-hard/src/index.html", - "main": "apps/pipe-hard/src/main.ts", - "polyfills": "apps/pipe-hard/src/polyfills.ts", - "tsConfig": "apps/pipe-hard/tsconfig.app.json", + "outputPath": "dist/apps/angular/pipe-hard", + "index": "apps/angular/pipe-hard/src/index.html", + "main": "apps/angular/pipe-hard/src/main.ts", + "polyfills": "apps/angular/pipe-hard/src/polyfills.ts", + "tsConfig": "apps/angular/pipe-hard/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/pipe-hard/src/favicon.ico", - "apps/pipe-hard/src/assets" + "apps/angular/pipe-hard/src/favicon.ico", + "apps/angular/pipe-hard/src/assets" ], - "styles": ["apps/pipe-hard/src/styles.scss"], + "styles": ["apps/angular/pipe-hard/src/styles.scss"], "scripts": [] }, "configurations": { @@ -38,8 +38,8 @@ ], "fileReplacements": [ { - "replace": "apps/pipe-hard/src/environments/environment.ts", - "with": "apps/pipe-hard/src/environments/environment.prod.ts" + "replace": "apps/angular/pipe-hard/src/environments/environment.ts", + "with": "apps/angular/pipe-hard/src/environments/environment.prod.ts" } ], "outputHashing": "all" @@ -59,10 +59,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "pipe-hard:build:production" + "browserTarget": "angular-pipe-hard:build:production" }, "development": { - "browserTarget": "pipe-hard:build:development" + "browserTarget": "angular-pipe-hard:build:development" } }, "defaultConfiguration": "development" @@ -70,15 +70,15 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "pipe-hard:build" + "browserTarget": "angular-pipe-hard:build" } }, "lint": { "executor": "@nx/linter:eslint", "options": { "lintFilePatterns": [ - "apps/pipe-hard/**/*.ts", - "apps/pipe-hard/**/*.html" + "apps/angular/pipe-hard/**/*.ts", + "apps/angular/pipe-hard/**/*.html" ] } } diff --git a/apps/pipe-hard/src/app/app.component.ts b/apps/angular/pipe-hard/src/app/app.component.ts similarity index 100% rename from apps/pipe-hard/src/app/app.component.ts rename to apps/angular/pipe-hard/src/app/app.component.ts diff --git a/apps/pipe-hard/src/app/person.utils.ts b/apps/angular/pipe-hard/src/app/person.utils.ts similarity index 100% rename from apps/pipe-hard/src/app/person.utils.ts rename to apps/angular/pipe-hard/src/app/person.utils.ts diff --git a/apps/pipe-hard/src/assets/.gitkeep b/apps/angular/pipe-hard/src/assets/.gitkeep similarity index 100% rename from apps/pipe-hard/src/assets/.gitkeep rename to apps/angular/pipe-hard/src/assets/.gitkeep diff --git a/apps/pipe-hard/src/environments/environment.prod.ts b/apps/angular/pipe-hard/src/environments/environment.prod.ts similarity index 100% rename from apps/pipe-hard/src/environments/environment.prod.ts rename to apps/angular/pipe-hard/src/environments/environment.prod.ts diff --git a/apps/pipe-hard/src/environments/environment.ts b/apps/angular/pipe-hard/src/environments/environment.ts similarity index 100% rename from apps/pipe-hard/src/environments/environment.ts rename to apps/angular/pipe-hard/src/environments/environment.ts diff --git a/apps/pipe-hard/src/favicon.ico b/apps/angular/pipe-hard/src/favicon.ico similarity index 100% rename from apps/pipe-hard/src/favicon.ico rename to apps/angular/pipe-hard/src/favicon.ico diff --git a/apps/pipe-hard/src/index.html b/apps/angular/pipe-hard/src/index.html similarity index 100% rename from apps/pipe-hard/src/index.html rename to apps/angular/pipe-hard/src/index.html diff --git a/apps/pipe-hard/src/main.ts b/apps/angular/pipe-hard/src/main.ts similarity index 100% rename from apps/pipe-hard/src/main.ts rename to apps/angular/pipe-hard/src/main.ts diff --git a/apps/pipe-hard/src/polyfills.ts b/apps/angular/pipe-hard/src/polyfills.ts similarity index 100% rename from apps/pipe-hard/src/polyfills.ts rename to apps/angular/pipe-hard/src/polyfills.ts diff --git a/apps/pipe-hard/src/styles.scss b/apps/angular/pipe-hard/src/styles.scss similarity index 100% rename from apps/pipe-hard/src/styles.scss rename to apps/angular/pipe-hard/src/styles.scss diff --git a/apps/pipe-hard/tsconfig.app.json b/apps/angular/pipe-hard/tsconfig.app.json similarity index 88% rename from apps/pipe-hard/tsconfig.app.json rename to apps/angular/pipe-hard/tsconfig.app.json index ed3ec6e..7a4dbc4 100644 --- a/apps/pipe-hard/tsconfig.app.json +++ b/apps/angular/pipe-hard/tsconfig.app.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../dist/out-tsc", + "outDir": "../../../dist/out-tsc", "types": [], "target": "ES2022", "useDefineForClassFields": false diff --git a/apps/pipe-hard/tsconfig.editor.json b/apps/angular/pipe-hard/tsconfig.editor.json similarity index 100% rename from apps/pipe-hard/tsconfig.editor.json rename to apps/angular/pipe-hard/tsconfig.editor.json diff --git a/apps/pipe-hard/tsconfig.json b/apps/angular/pipe-hard/tsconfig.json similarity index 93% rename from apps/pipe-hard/tsconfig.json rename to apps/angular/pipe-hard/tsconfig.json index 0b7a078..b2dbbf2 100644 --- a/apps/pipe-hard/tsconfig.json +++ b/apps/angular/pipe-hard/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../tsconfig.base.json", "files": [], "include": [], "references": [ diff --git a/docs/src/content/docs/challenges/angular/10-pipe-utility.md b/docs/src/content/docs/challenges/angular/10-pipe-utility.md index b9c3438..67bb84c 100644 --- a/docs/src/content/docs/challenges/angular/10-pipe-utility.md +++ b/docs/src/content/docs/challenges/angular/10-pipe-utility.md @@ -3,7 +3,7 @@ title: 🔴 Utility Wrapper Pipe description: Challenge 10 is about creating a pipe to wrap utilities author: Thomas Laforge challengeNumber: 10 -command: pipe-hard +command: angular-pipe-hard sidebar: order: 202 ---