From 058c7b04a0e5c988edbc9c04eb742bc2bb73d903 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 18 Oct 2023 10:05:07 +0200 Subject: [PATCH] feat(doc): move pipe stuling --- apps/{ => angular}/styling/.eslintrc.json | 2 +- apps/{ => angular}/styling/README.md | 4 +-- apps/{ => angular}/styling/project.json | 32 +++++++++++------- .../styling/src/app/page.component.ts | 0 .../styling/src/app/static-text.component.ts | 0 .../styling/src/app/text.component.ts | 0 .../{ => angular}/styling/src/assets/.gitkeep | 0 apps/{ => angular}/styling/src/favicon.ico | Bin apps/{ => angular}/styling/src/index.html | 0 apps/{ => angular}/styling/src/main.ts | 0 apps/{ => angular}/styling/src/styles.scss | 0 apps/{ => angular}/styling/tsconfig.app.json | 2 +- .../styling/tsconfig.editor.json | 0 apps/{ => angular}/styling/tsconfig.json | 2 +- 14 files changed, 24 insertions(+), 18 deletions(-) rename apps/{ => angular}/styling/.eslintrc.json (94%) rename apps/{ => angular}/styling/README.md (70%) rename apps/{ => angular}/styling/project.json (64%) rename apps/{ => angular}/styling/src/app/page.component.ts (100%) rename apps/{ => angular}/styling/src/app/static-text.component.ts (100%) rename apps/{ => angular}/styling/src/app/text.component.ts (100%) rename apps/{ => angular}/styling/src/assets/.gitkeep (100%) rename apps/{ => angular}/styling/src/favicon.ico (100%) rename apps/{ => angular}/styling/src/index.html (100%) rename apps/{ => angular}/styling/src/main.ts (100%) rename apps/{ => angular}/styling/src/styles.scss (100%) rename apps/{ => angular}/styling/tsconfig.app.json (84%) rename apps/{ => angular}/styling/tsconfig.editor.json (100%) rename apps/{ => angular}/styling/tsconfig.json (93%) diff --git a/apps/styling/.eslintrc.json b/apps/angular/styling/.eslintrc.json similarity index 94% rename from apps/styling/.eslintrc.json rename to apps/angular/styling/.eslintrc.json index b428c22..bf8df14 100644 --- a/apps/styling/.eslintrc.json +++ b/apps/angular/styling/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../.eslintrc.json"], + "extends": ["../../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/apps/styling/README.md b/apps/angular/styling/README.md similarity index 70% rename from apps/styling/README.md rename to apps/angular/styling/README.md index 85a1365..3119fc6 100644 --- a/apps/styling/README.md +++ b/apps/angular/styling/README.md @@ -5,9 +5,9 @@ ### Run Application ```bash -npx nx serve styling +npx nx serve angular-styling ``` ### Documentation and Instruction -Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/angular/13-styling/). +Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/angular/13-angular-styling/). diff --git a/apps/styling/project.json b/apps/angular/styling/project.json similarity index 64% rename from apps/styling/project.json rename to apps/angular/styling/project.json index 107a2c1..d0621ff 100644 --- a/apps/styling/project.json +++ b/apps/angular/styling/project.json @@ -1,22 +1,25 @@ { - "name": "styling", - "$schema": "../../node_modules/nx/schemas/project-schema.json", + "name": "angular-styling", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/styling/src", + "sourceRoot": "apps/angular/styling/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/styling", - "index": "apps/styling/src/index.html", - "main": "apps/styling/src/main.ts", + "outputPath": "dist/apps/angular/styling", + "index": "apps/angular/styling/src/index.html", + "main": "apps/angular/styling/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/styling/tsconfig.app.json", + "tsConfig": "apps/angular/styling/tsconfig.app.json", "inlineStyleLanguage": "scss", - "assets": ["apps/styling/src/favicon.ico", "apps/styling/src/assets"], - "styles": ["apps/styling/src/styles.scss"], + "assets": [ + "apps/angular/styling/src/favicon.ico", + "apps/angular/styling/src/assets" + ], + "styles": ["apps/angular/styling/src/styles.scss"], "scripts": [] }, "configurations": { @@ -50,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "styling:build:production" + "browserTarget": "angular-styling:build:production" }, "development": { - "browserTarget": "styling:build:development" + "browserTarget": "angular-styling:build:development" } }, "defaultConfiguration": "development" @@ -61,14 +64,17 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "styling:build" + "browserTarget": "angular-styling:build" } }, "lint": { "executor": "@nx/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["apps/styling/**/*.ts", "apps/styling/**/*.html"] + "lintFilePatterns": [ + "apps/angular/styling/**/*.ts", + "apps/angular/styling/**/*.html" + ] } } }, diff --git a/apps/styling/src/app/page.component.ts b/apps/angular/styling/src/app/page.component.ts similarity index 100% rename from apps/styling/src/app/page.component.ts rename to apps/angular/styling/src/app/page.component.ts diff --git a/apps/styling/src/app/static-text.component.ts b/apps/angular/styling/src/app/static-text.component.ts similarity index 100% rename from apps/styling/src/app/static-text.component.ts rename to apps/angular/styling/src/app/static-text.component.ts diff --git a/apps/styling/src/app/text.component.ts b/apps/angular/styling/src/app/text.component.ts similarity index 100% rename from apps/styling/src/app/text.component.ts rename to apps/angular/styling/src/app/text.component.ts diff --git a/apps/styling/src/assets/.gitkeep b/apps/angular/styling/src/assets/.gitkeep similarity index 100% rename from apps/styling/src/assets/.gitkeep rename to apps/angular/styling/src/assets/.gitkeep diff --git a/apps/styling/src/favicon.ico b/apps/angular/styling/src/favicon.ico similarity index 100% rename from apps/styling/src/favicon.ico rename to apps/angular/styling/src/favicon.ico diff --git a/apps/styling/src/index.html b/apps/angular/styling/src/index.html similarity index 100% rename from apps/styling/src/index.html rename to apps/angular/styling/src/index.html diff --git a/apps/styling/src/main.ts b/apps/angular/styling/src/main.ts similarity index 100% rename from apps/styling/src/main.ts rename to apps/angular/styling/src/main.ts diff --git a/apps/styling/src/styles.scss b/apps/angular/styling/src/styles.scss similarity index 100% rename from apps/styling/src/styles.scss rename to apps/angular/styling/src/styles.scss diff --git a/apps/styling/tsconfig.app.json b/apps/angular/styling/tsconfig.app.json similarity index 84% rename from apps/styling/tsconfig.app.json rename to apps/angular/styling/tsconfig.app.json index fff4a41..5822042 100644 --- a/apps/styling/tsconfig.app.json +++ b/apps/angular/styling/tsconfig.app.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../dist/out-tsc", + "outDir": "../../../dist/out-tsc", "types": [] }, "files": ["src/main.ts"], diff --git a/apps/styling/tsconfig.editor.json b/apps/angular/styling/tsconfig.editor.json similarity index 100% rename from apps/styling/tsconfig.editor.json rename to apps/angular/styling/tsconfig.editor.json diff --git a/apps/styling/tsconfig.json b/apps/angular/styling/tsconfig.json similarity index 93% rename from apps/styling/tsconfig.json rename to apps/angular/styling/tsconfig.json index 0731542..51c7908 100644 --- a/apps/styling/tsconfig.json +++ b/apps/angular/styling/tsconfig.json @@ -19,7 +19,7 @@ "path": "./tsconfig.editor.json" } ], - "extends": "../../tsconfig.base.json", + "extends": "../../../tsconfig.base.json", "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true,