feat(doc): move scroll-vd

This commit is contained in:
thomas
2023-10-18 09:49:19 +02:00
parent 0fae068682
commit a2d6f2471d
16 changed files with 26 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
{ {
"extends": ["../../.eslintrc.json"], "extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"], "ignorePatterns": ["!**/*"],
"overrides": [ "overrides": [
{ {

View File

@@ -5,9 +5,9 @@
### Run Application ### Run Application
```bash ```bash
npx nx serve scroll-cd npx nx serve performance-scroll-cd
``` ```
### Documentation and Instruction ### 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/).

View File

@@ -1,10 +1,10 @@
/* eslint-disable */ /* eslint-disable */
export default { export default {
displayName: 'scroll-cd', displayName: 'performance-scroll-cd',
preset: '../../jest.preset.js', preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {}, globals: {},
coverageDirectory: '../../coverage/apps/scroll-cd', coverageDirectory: '../../../coverage/apps/performance/scroll-cd',
transform: { transform: {
'^.+\\.(ts|mjs|js|html)$': [ '^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular', 'jest-preset-angular',

View File

@@ -1,25 +1,25 @@
{ {
"name": "scroll-cd", "name": "performance-scroll-cd",
"$schema": "../../node_modules/nx/schemas/project-schema.json", "$schema": "../../../node_modules/nx/schemas/project-schema.json",
"projectType": "application", "projectType": "application",
"sourceRoot": "apps/scroll-cd/src", "sourceRoot": "apps/performance/scroll-cd/src",
"prefix": "app", "prefix": "app",
"targets": { "targets": {
"build": { "build": {
"executor": "@angular-devkit/build-angular:browser", "executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"], "outputs": ["{options.outputPath}"],
"options": { "options": {
"outputPath": "dist/apps/scroll-cd", "outputPath": "dist/apps/performance/scroll-cd",
"index": "apps/scroll-cd/src/index.html", "index": "apps/performance/scroll-cd/src/index.html",
"main": "apps/scroll-cd/src/main.ts", "main": "apps/performance/scroll-cd/src/main.ts",
"polyfills": ["zone.js"], "polyfills": ["zone.js"],
"tsConfig": "apps/scroll-cd/tsconfig.app.json", "tsConfig": "apps/performance/scroll-cd/tsconfig.app.json",
"inlineStyleLanguage": "scss", "inlineStyleLanguage": "scss",
"assets": [ "assets": [
"apps/scroll-cd/src/favicon.ico", "apps/performance/scroll-cd/src/favicon.ico",
"apps/scroll-cd/src/assets" "apps/performance/scroll-cd/src/assets"
], ],
"styles": ["apps/scroll-cd/src/styles.scss"], "styles": ["apps/performance/scroll-cd/src/styles.scss"],
"scripts": [] "scripts": []
}, },
"configurations": { "configurations": {
@@ -53,10 +53,10 @@
"executor": "@angular-devkit/build-angular:dev-server", "executor": "@angular-devkit/build-angular:dev-server",
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "scroll-cd:build:production" "browserTarget": "performance-scroll-cd:build:production"
}, },
"development": { "development": {
"browserTarget": "scroll-cd:build:development" "browserTarget": "performance-scroll-cd:build:development"
} }
}, },
"defaultConfiguration": "development" "defaultConfiguration": "development"
@@ -64,7 +64,7 @@
"extract-i18n": { "extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n", "executor": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "scroll-cd:build" "browserTarget": "performance-scroll-cd:build"
} }
}, },
"lint": { "lint": {
@@ -72,8 +72,8 @@
"outputs": ["{options.outputFile}"], "outputs": ["{options.outputFile}"],
"options": { "options": {
"lintFilePatterns": [ "lintFilePatterns": [
"apps/scroll-cd/**/*.ts", "apps/performance/scroll-cd/**/*.ts",
"apps/scroll-cd/**/*.html" "apps/performance/scroll-cd/**/*.html"
] ]
} }
}, },
@@ -81,7 +81,7 @@
"executor": "@nx/jest:jest", "executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": { "options": {
"jestConfig": "apps/scroll-cd/jest.config.ts", "jestConfig": "apps/performance/scroll-cd/jest.config.ts",
"passWithNoTests": true "passWithNoTests": true
} }
} }

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,7 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc", "outDir": "../../../dist/out-tsc",
"types": [] "types": []
}, },
"files": ["src/main.ts"], "files": ["src/main.ts"],

View File

@@ -22,7 +22,7 @@
"path": "./tsconfig.editor.json" "path": "./tsconfig.editor.json"
} }
], ],
"extends": "../../tsconfig.base.json", "extends": "../../../tsconfig.base.json",
"angularCompilerOptions": { "angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false, "enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true, "strictInjectionParameters": true,

View File

@@ -1,7 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc", "outDir": "../../../dist/out-tsc",
"module": "commonjs", "module": "commonjs",
"types": ["jest", "node"] "types": ["jest", "node"]
}, },

View File

@@ -3,7 +3,7 @@ title: 🟠 Optimize Change Detection
description: Challenge 12 about optimizing the number of change detection cycle while scrolling description: Challenge 12 about optimizing the number of change detection cycle while scrolling
author: Thomas Laforge author: Thomas Laforge
challengeNumber: 12 challengeNumber: 12
command: scroll-cd command: performance-scroll-cd
sidebar: sidebar:
order: 107 order: 107
--- ---