refactor: notification

This commit is contained in:
thomas
2024-05-13 16:24:11 +02:00
parent fbb9e3eccf
commit 678dd77030
37 changed files with 41 additions and 41 deletions

View File

@@ -1,7 +0,0 @@
# ngrx-notification-backend
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test ngrx-notification-backend` to execute the unit tests.

View File

@@ -1,7 +0,0 @@
# ngrx-notification-model
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test ngrx-notification-model` to execute the unit tests.

View File

@@ -0,0 +1,7 @@
# power-of-effect-backend
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test power-of-effect-backend` to execute the unit tests.

View File

@@ -1,10 +1,10 @@
/* eslint-disable */
export default {
displayName: 'ngrx-notification-model',
displayName: 'power-of-effect-backend',
preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {},
coverageDirectory: '../../../coverage/libs/ngrx-notification/model',
coverageDirectory: '../../../coverage/libs/power-of-effect/backend',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',

View File

@@ -1,15 +1,15 @@
{
"name": "ngrx-notification-model",
"name": "power-of-effect-backend",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "libs/ngrx-notification/model/src",
"sourceRoot": "libs/power-of-effect/backend/src",
"prefix": "lib",
"targets": {
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/ngrx-notification/model/jest.config.ts"
"jestConfig": "libs/power-of-effect/backend/jest.config.ts"
}
},
"lint": {

View File

@@ -2,7 +2,7 @@ import {
randSchool,
randStudent,
randTeacher,
} from '@angular-challenges/ngrx-notification/model';
} from '@angular-challenges/power-of-effect/model';
import { Injectable, inject } from '@angular/core';
import { randCompanyName, randFirstName } from '@ngneat/falso';
import { concatLatestFrom } from '@ngrx/effects';

View File

@@ -2,7 +2,7 @@ import {
School,
Student,
Teacher,
} from '@angular-challenges/ngrx-notification/model';
} from '@angular-challenges/power-of-effect/model';
import { Injectable } from '@angular/core';
import { randNumber } from '@ngneat/falso';
import { ComponentStore } from '@ngrx/component-store';

View File

@@ -1,4 +1,4 @@
import { Push } from '@angular-challenges/ngrx-notification/model';
import { Push } from '@angular-challenges/power-of-effect/model';
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';

View File

@@ -0,0 +1,7 @@
# power-of-effect-model
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test power-of-effect-model` to execute the unit tests.

View File

@@ -1,10 +1,10 @@
/* eslint-disable */
export default {
displayName: 'ngrx-notification-backend',
displayName: 'power-of-effect-model',
preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {},
coverageDirectory: '../../../coverage/libs/ngrx-notification/backend',
coverageDirectory: '../../../coverage/libs/power-of-effect/model',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',

View File

@@ -1,15 +1,15 @@
{
"name": "ngrx-notification-backend",
"name": "power-of-effect-model",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "libs/ngrx-notification/backend/src",
"sourceRoot": "libs/power-of-effect/model/src",
"prefix": "lib",
"targets": {
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/ngrx-notification/backend/jest.config.ts"
"jestConfig": "libs/power-of-effect/model/jest.config.ts"
}
},
"lint": {