diff --git a/apps/scroll-cd/.eslintrc.json b/apps/performance/scroll-cd/.eslintrc.json similarity index 94% rename from apps/scroll-cd/.eslintrc.json rename to apps/performance/scroll-cd/.eslintrc.json index b428c22..bf8df14 100644 --- a/apps/scroll-cd/.eslintrc.json +++ b/apps/performance/scroll-cd/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["../../.eslintrc.json"], + "extends": ["../../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/apps/scroll-cd/README.md b/apps/performance/scroll-cd/README.md similarity index 64% rename from apps/scroll-cd/README.md rename to apps/performance/scroll-cd/README.md index 75add98..f8eaacf 100644 --- a/apps/scroll-cd/README.md +++ b/apps/performance/scroll-cd/README.md @@ -5,9 +5,9 @@ ### Run Application ```bash -npx nx serve scroll-cd +npx nx serve performance-scroll-cd ``` ### Documentation and Instruction -Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/angular-performance/12-scroll-cd/). +Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/angular-performance/12-performance-scroll-cd/). diff --git a/apps/scroll-cd/jest.config.ts b/apps/performance/scroll-cd/jest.config.ts similarity index 80% rename from apps/scroll-cd/jest.config.ts rename to apps/performance/scroll-cd/jest.config.ts index 1534104..4c91050 100644 --- a/apps/scroll-cd/jest.config.ts +++ b/apps/performance/scroll-cd/jest.config.ts @@ -1,10 +1,10 @@ /* eslint-disable */ export default { - displayName: 'scroll-cd', - preset: '../../jest.preset.js', + displayName: 'performance-scroll-cd', + preset: '../../../jest.preset.js', setupFilesAfterEnv: ['/src/test-setup.ts'], globals: {}, - coverageDirectory: '../../coverage/apps/scroll-cd', + coverageDirectory: '../../../coverage/apps/performance/scroll-cd', transform: { '^.+\\.(ts|mjs|js|html)$': [ 'jest-preset-angular', diff --git a/apps/scroll-cd/project.json b/apps/performance/scroll-cd/project.json similarity index 65% rename from apps/scroll-cd/project.json rename to apps/performance/scroll-cd/project.json index d07139b..2fae9aa 100644 --- a/apps/scroll-cd/project.json +++ b/apps/performance/scroll-cd/project.json @@ -1,25 +1,25 @@ { - "name": "scroll-cd", - "$schema": "../../node_modules/nx/schemas/project-schema.json", + "name": "performance-scroll-cd", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "apps/scroll-cd/src", + "sourceRoot": "apps/performance/scroll-cd/src", "prefix": "app", "targets": { "build": { "executor": "@angular-devkit/build-angular:browser", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/apps/scroll-cd", - "index": "apps/scroll-cd/src/index.html", - "main": "apps/scroll-cd/src/main.ts", + "outputPath": "dist/apps/performance/scroll-cd", + "index": "apps/performance/scroll-cd/src/index.html", + "main": "apps/performance/scroll-cd/src/main.ts", "polyfills": ["zone.js"], - "tsConfig": "apps/scroll-cd/tsconfig.app.json", + "tsConfig": "apps/performance/scroll-cd/tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ - "apps/scroll-cd/src/favicon.ico", - "apps/scroll-cd/src/assets" + "apps/performance/scroll-cd/src/favicon.ico", + "apps/performance/scroll-cd/src/assets" ], - "styles": ["apps/scroll-cd/src/styles.scss"], + "styles": ["apps/performance/scroll-cd/src/styles.scss"], "scripts": [] }, "configurations": { @@ -53,10 +53,10 @@ "executor": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "scroll-cd:build:production" + "browserTarget": "performance-scroll-cd:build:production" }, "development": { - "browserTarget": "scroll-cd:build:development" + "browserTarget": "performance-scroll-cd:build:development" } }, "defaultConfiguration": "development" @@ -64,7 +64,7 @@ "extract-i18n": { "executor": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "scroll-cd:build" + "browserTarget": "performance-scroll-cd:build" } }, "lint": { @@ -72,8 +72,8 @@ "outputs": ["{options.outputFile}"], "options": { "lintFilePatterns": [ - "apps/scroll-cd/**/*.ts", - "apps/scroll-cd/**/*.html" + "apps/performance/scroll-cd/**/*.ts", + "apps/performance/scroll-cd/**/*.html" ] } }, @@ -81,7 +81,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { - "jestConfig": "apps/scroll-cd/jest.config.ts", + "jestConfig": "apps/performance/scroll-cd/jest.config.ts", "passWithNoTests": true } } diff --git a/apps/scroll-cd/src/app/app.component.ts b/apps/performance/scroll-cd/src/app/app.component.ts similarity index 100% rename from apps/scroll-cd/src/app/app.component.ts rename to apps/performance/scroll-cd/src/app/app.component.ts diff --git a/apps/scroll-cd/src/assets/.gitkeep b/apps/performance/scroll-cd/src/assets/.gitkeep similarity index 100% rename from apps/scroll-cd/src/assets/.gitkeep rename to apps/performance/scroll-cd/src/assets/.gitkeep diff --git a/apps/scroll-cd/src/favicon.ico b/apps/performance/scroll-cd/src/favicon.ico similarity index 100% rename from apps/scroll-cd/src/favicon.ico rename to apps/performance/scroll-cd/src/favicon.ico diff --git a/apps/scroll-cd/src/index.html b/apps/performance/scroll-cd/src/index.html similarity index 100% rename from apps/scroll-cd/src/index.html rename to apps/performance/scroll-cd/src/index.html diff --git a/apps/scroll-cd/src/main.ts b/apps/performance/scroll-cd/src/main.ts similarity index 100% rename from apps/scroll-cd/src/main.ts rename to apps/performance/scroll-cd/src/main.ts diff --git a/apps/scroll-cd/src/styles.scss b/apps/performance/scroll-cd/src/styles.scss similarity index 100% rename from apps/scroll-cd/src/styles.scss rename to apps/performance/scroll-cd/src/styles.scss diff --git a/apps/scroll-cd/src/test-setup.ts b/apps/performance/scroll-cd/src/test-setup.ts similarity index 100% rename from apps/scroll-cd/src/test-setup.ts rename to apps/performance/scroll-cd/src/test-setup.ts diff --git a/apps/scroll-cd/tsconfig.app.json b/apps/performance/scroll-cd/tsconfig.app.json similarity index 84% rename from apps/scroll-cd/tsconfig.app.json rename to apps/performance/scroll-cd/tsconfig.app.json index fff4a41..5822042 100644 --- a/apps/scroll-cd/tsconfig.app.json +++ b/apps/performance/scroll-cd/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/scroll-cd/tsconfig.editor.json b/apps/performance/scroll-cd/tsconfig.editor.json similarity index 100% rename from apps/scroll-cd/tsconfig.editor.json rename to apps/performance/scroll-cd/tsconfig.editor.json diff --git a/apps/scroll-cd/tsconfig.json b/apps/performance/scroll-cd/tsconfig.json similarity index 94% rename from apps/scroll-cd/tsconfig.json rename to apps/performance/scroll-cd/tsconfig.json index e01cf19..e85865c 100644 --- a/apps/scroll-cd/tsconfig.json +++ b/apps/performance/scroll-cd/tsconfig.json @@ -22,7 +22,7 @@ "path": "./tsconfig.editor.json" } ], - "extends": "../../tsconfig.base.json", + "extends": "../../../tsconfig.base.json", "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, diff --git a/apps/scroll-cd/tsconfig.spec.json b/apps/performance/scroll-cd/tsconfig.spec.json similarity index 87% rename from apps/scroll-cd/tsconfig.spec.json rename to apps/performance/scroll-cd/tsconfig.spec.json index f6a7d97..ca14cc6 100644 --- a/apps/scroll-cd/tsconfig.spec.json +++ b/apps/performance/scroll-cd/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../dist/out-tsc", + "outDir": "../../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"] }, diff --git a/docs/src/content/docs/challenges/angular-performance/12-scroll-cd.md b/docs/src/content/docs/challenges/angular-performance/12-scroll-cd.md index 14b9d08..8841dbb 100644 --- a/docs/src/content/docs/challenges/angular-performance/12-scroll-cd.md +++ b/docs/src/content/docs/challenges/angular-performance/12-scroll-cd.md @@ -3,7 +3,7 @@ title: 🟠 Optimize Change Detection description: Challenge 12 about optimizing the number of change detection cycle while scrolling author: Thomas Laforge challengeNumber: 12 -command: scroll-cd +command: performance-scroll-cd sidebar: order: 107 ---