mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat(doc): move effect-selector
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": ["../../.eslintrc.json"],
|
"extends": ["../../../.eslintrc.json"],
|
||||||
"ignorePatterns": ["!**/*"],
|
"ignorePatterns": ["!**/*"],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
### Run Application
|
### Run Application
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx nx serve ngrx-1
|
npx nx serve ngrx-effect-selector
|
||||||
```
|
```
|
||||||
|
|
||||||
### Documentation and Instruction
|
### Documentation and Instruction
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
export default {
|
export default {
|
||||||
displayName: 'ngrx-1',
|
displayName: 'ngrx-effect-selector',
|
||||||
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/ngrx-1',
|
coverageDirectory: '../../../coverage/apps/ngrx/effect-selector',
|
||||||
transform: {
|
transform: {
|
||||||
'^.+\\.(ts|mjs|js|html)$': [
|
'^.+\\.(ts|mjs|js|html)$': [
|
||||||
'jest-preset-angular',
|
'jest-preset-angular',
|
||||||
@@ -1,22 +1,25 @@
|
|||||||
{
|
{
|
||||||
"name": "ngrx-1",
|
"name": "ngrx-effect-selector",
|
||||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
||||||
"projectType": "application",
|
"projectType": "application",
|
||||||
"sourceRoot": "apps/ngrx-1/src",
|
"sourceRoot": "apps/ngrx/effect-selector/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/ngrx-1",
|
"outputPath": "dist/apps/ngrx/effect-selector",
|
||||||
"index": "apps/ngrx-1/src/index.html",
|
"index": "apps/ngrx/effect-selector/src/index.html",
|
||||||
"main": "apps/ngrx-1/src/main.ts",
|
"main": "apps/ngrx/effect-selector/src/main.ts",
|
||||||
"polyfills": "apps/ngrx-1/src/polyfills.ts",
|
"polyfills": "apps/ngrx/effect-selector/src/polyfills.ts",
|
||||||
"tsConfig": "apps/ngrx-1/tsconfig.app.json",
|
"tsConfig": "apps/ngrx/effect-selector/tsconfig.app.json",
|
||||||
"inlineStyleLanguage": "scss",
|
"inlineStyleLanguage": "scss",
|
||||||
"assets": ["apps/ngrx-1/src/favicon.ico", "apps/ngrx-1/src/assets"],
|
"assets": [
|
||||||
"styles": ["apps/ngrx-1/src/styles.scss"],
|
"apps/ngrx/effect-selector/src/favicon.ico",
|
||||||
|
"apps/ngrx/effect-selector/src/assets"
|
||||||
|
],
|
||||||
|
"styles": ["apps/ngrx/effect-selector/src/styles.scss"],
|
||||||
"scripts": [],
|
"scripts": [],
|
||||||
"allowedCommonJsDependencies": ["seedrandom"]
|
"allowedCommonJsDependencies": ["seedrandom"]
|
||||||
},
|
},
|
||||||
@@ -36,8 +39,8 @@
|
|||||||
],
|
],
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
{
|
{
|
||||||
"replace": "apps/ngrx-1/src/environments/environment.ts",
|
"replace": "apps/ngrx/effect-selector/src/environments/environment.ts",
|
||||||
"with": "apps/ngrx-1/src/environments/environment.prod.ts"
|
"with": "apps/ngrx/effect-selector/src/environments/environment.prod.ts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputHashing": "all"
|
"outputHashing": "all"
|
||||||
@@ -57,10 +60,10 @@
|
|||||||
"executor": "@angular-devkit/build-angular:dev-server",
|
"executor": "@angular-devkit/build-angular:dev-server",
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"browserTarget": "ngrx-1:build:production"
|
"browserTarget": "ngrx-effect-selector:build:production"
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"browserTarget": "ngrx-1:build:development"
|
"browserTarget": "ngrx-effect-selector:build:development"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
@@ -68,20 +71,23 @@
|
|||||||
"extract-i18n": {
|
"extract-i18n": {
|
||||||
"executor": "@angular-devkit/build-angular:extract-i18n",
|
"executor": "@angular-devkit/build-angular:extract-i18n",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "ngrx-1:build"
|
"browserTarget": "ngrx-effect-selector:build"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/linter:eslint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/ngrx-1/**/*.ts", "apps/ngrx-1/**/*.html"]
|
"lintFilePatterns": [
|
||||||
|
"apps/ngrx/effect-selector/**/*.ts",
|
||||||
|
"apps/ngrx/effect-selector/**/*.html"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"executor": "@nx/jest:jest",
|
"executor": "@nx/jest:jest",
|
||||||
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
||||||
"options": {
|
"options": {
|
||||||
"jestConfig": "apps/ngrx-1/jest.config.ts",
|
"jestConfig": "apps/ngrx/effect-selector/jest.config.ts",
|
||||||
"passWithNoTests": true
|
"passWithNoTests": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,8 +29,7 @@ import { loadUsers } from './store/user/user.actions';
|
|||||||
*ngFor="
|
*ngFor="
|
||||||
let teacher of getAllTeachersForActivityType$(activity.type)
|
let teacher of getAllTeachersForActivityType$(activity.type)
|
||||||
| async
|
| async
|
||||||
"
|
">
|
||||||
>
|
|
||||||
{{ teacher.name }}
|
{{ teacher.name }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -12,7 +12,7 @@ export const activityType = [
|
|||||||
'Maths',
|
'Maths',
|
||||||
'Physics',
|
'Physics',
|
||||||
] as const;
|
] as const;
|
||||||
export type ActivityType = typeof activityType[number];
|
export type ActivityType = (typeof activityType)[number];
|
||||||
|
|
||||||
export interface Person {
|
export interface Person {
|
||||||
id: number;
|
id: number;
|
||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../../dist/out-tsc",
|
"outDir": "../../../dist/out-tsc",
|
||||||
"types": [],
|
"types": [],
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"useDefineForClassFields": false
|
"useDefineForClassFields": false
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../../tsconfig.base.json",
|
||||||
"files": [],
|
"files": [],
|
||||||
"include": [],
|
"include": [],
|
||||||
"references": [
|
"references": [
|
||||||
@@ -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"]
|
||||||
},
|
},
|
||||||
@@ -3,7 +3,7 @@ title: 🟠 Effect vs Selector
|
|||||||
description: Challenge 2 is about learning the difference between effects and selectors in NgRx
|
description: Challenge 2 is about learning the difference between effects and selectors in NgRx
|
||||||
author: Thomas Laforge
|
author: Thomas Laforge
|
||||||
challengeNumber: 2
|
challengeNumber: 2
|
||||||
command: ngrx-1
|
command: ngrx-effect-selector
|
||||||
blogLink: https://medium.com/@thomas.laforge/ngrx-effect-vs-reducer-vs-selector-58337ab59043
|
blogLink: https://medium.com/@thomas.laforge/ngrx-effect-vs-reducer-vs-selector-58337ab59043
|
||||||
sidebar:
|
sidebar:
|
||||||
order: 113
|
order: 113
|
||||||
|
|||||||
Reference in New Issue
Block a user