mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat(doc): move scroll-vd
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": ["../../.eslintrc.json"],
|
||||
"extends": ["../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
@@ -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/).
|
||||
@@ -1,10 +1,10 @@
|
||||
/* eslint-disable */
|
||||
export default {
|
||||
displayName: 'scroll-cd',
|
||||
preset: '../../jest.preset.js',
|
||||
displayName: 'performance-scroll-cd',
|
||||
preset: '../../../jest.preset.js',
|
||||
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
||||
globals: {},
|
||||
coverageDirectory: '../../coverage/apps/scroll-cd',
|
||||
coverageDirectory: '../../../coverage/apps/performance/scroll-cd',
|
||||
transform: {
|
||||
'^.+\\.(ts|mjs|js|html)$': [
|
||||
'jest-preset-angular',
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"outDir": "../../../dist/out-tsc",
|
||||
"types": []
|
||||
},
|
||||
"files": ["src/main.ts"],
|
||||
@@ -22,7 +22,7 @@
|
||||
"path": "./tsconfig.editor.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"outDir": "../../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
},
|
||||
@@ -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
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user