Skip to content

Commit 01a41ed

Browse files
committed
feat(doc): move projection
1 parent fedab5e commit 01a41ed

36 files changed

+40
-44
lines changed

apps/projection/.eslintrc.json renamed to apps/angular/projection/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["../../.eslintrc.json"],
2+
"extends": ["../../../.eslintrc.json"],
33
"ignorePatterns": ["!**/*"],
44
"overrides": [
55
{

apps/projection/README.md renamed to apps/angular/projection/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
### Run Application
66

77
```bash
8-
npx nx serve projection
8+
npx nx serve angular-projection
99
```
1010

1111
### Documentation and Instruction
1212

13-
Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/angular/1-projection/).
13+
Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/angular/1-angular-projection/).

apps/projection/jest.config.ts renamed to apps/angular/projection/jest.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* eslint-disable */
22
export default {
3-
displayName: 'projection',
4-
preset: '../../jest.preset.js',
3+
displayName: 'angular-projection',
4+
preset: '../../../jest.preset.js',
55
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
66
globals: {},
7-
coverageDirectory: '../../coverage/apps/projection',
7+
coverageDirectory: '../../../coverage/apps/angular/projection',
88
transform: {
99
'^.+\\.(ts|mjs|js|html)$': [
1010
'jest-preset-angular',

apps/projection/project.json renamed to apps/angular/projection/project.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"name": "projection",
3-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
2+
"name": "angular-projection",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
5-
"sourceRoot": "apps/projection/src",
5+
"sourceRoot": "apps/angular/projection/src",
66
"prefix": "app",
77
"targets": {
88
"build": {
99
"executor": "@angular-devkit/build-angular:browser",
1010
"outputs": ["{options.outputPath}"],
1111
"options": {
12-
"outputPath": "dist/apps/projection",
13-
"index": "apps/projection/src/index.html",
14-
"main": "apps/projection/src/main.ts",
15-
"polyfills": "apps/projection/src/polyfills.ts",
16-
"tsConfig": "apps/projection/tsconfig.app.json",
12+
"outputPath": "dist/apps/angular/projection",
13+
"index": "apps/angular/projection/src/index.html",
14+
"main": "apps/angular/projection/src/main.ts",
15+
"polyfills": "apps/angular/projection/src/polyfills.ts",
16+
"tsConfig": "apps/angular/projection/tsconfig.app.json",
1717
"inlineStyleLanguage": "scss",
1818
"assets": [
19-
"apps/projection/src/favicon.ico",
20-
"apps/projection/src/assets"
19+
"apps/angular/projection/src/favicon.ico",
20+
"apps/angular/projection/src/assets"
2121
],
22-
"styles": ["apps/projection/src/styles.scss"],
22+
"styles": ["apps/angular/projection/src/styles.scss"],
2323
"scripts": [],
2424
"allowedCommonJsDependencies": ["seedrandom"]
2525
},
@@ -39,8 +39,8 @@
3939
],
4040
"fileReplacements": [
4141
{
42-
"replace": "apps/projection/src/environments/environment.ts",
43-
"with": "apps/projection/src/environments/environment.prod.ts"
42+
"replace": "apps/angular/projection/src/environments/environment.ts",
43+
"with": "apps/angular/projection/src/environments/environment.prod.ts"
4444
}
4545
],
4646
"outputHashing": "all"
@@ -60,34 +60,34 @@
6060
"executor": "@angular-devkit/build-angular:dev-server",
6161
"configurations": {
6262
"production": {
63-
"browserTarget": "projection:build:production"
63+
"browserTarget": "angular-projection:build:production"
6464
},
6565
"development": {
66-
"browserTarget": "projection:build:development"
66+
"browserTarget": "angular-projection:build:development"
6767
}
6868
},
6969
"defaultConfiguration": "development"
7070
},
7171
"extract-i18n": {
7272
"executor": "@angular-devkit/build-angular:extract-i18n",
7373
"options": {
74-
"browserTarget": "projection:build"
74+
"browserTarget": "angular-projection:build"
7575
}
7676
},
7777
"lint": {
7878
"executor": "@nx/linter:eslint",
7979
"options": {
8080
"lintFilePatterns": [
81-
"apps/projection/**/*.ts",
82-
"apps/projection/**/*.html"
81+
"apps/angular/projection/**/*.ts",
82+
"apps/angular/projection/**/*.html"
8383
]
8484
}
8585
},
8686
"test": {
8787
"executor": "@nx/jest:jest",
8888
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
8989
"options": {
90-
"jestConfig": "apps/projection/jest.config.ts",
90+
"jestConfig": "apps/angular/projection/jest.config.ts",
9191
"passWithNoTests": true
9292
}
9393
}

apps/projection/src/app/component/student-card/student-card.component.ts renamed to apps/angular/projection/src/app/component/student-card/student-card.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { CardComponent } from '../../ui/card/card.component';
1010
template: `<app-card
1111
[list]="students"
1212
[type]="cardType"
13-
customClass="bg-light-green"
14-
></app-card>`,
13+
customClass="bg-light-green"></app-card>`,
1514
standalone: true,
1615
styles: [
1716
`

apps/projection/src/app/component/teacher-card/teacher-card.component.ts renamed to apps/angular/projection/src/app/component/teacher-card/teacher-card.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { CardComponent } from '../../ui/card/card.component';
1010
template: `<app-card
1111
[list]="teachers"
1212
[type]="cardType"
13-
customClass="bg-light-red"
14-
></app-card>`,
13+
customClass="bg-light-red"></app-card>`,
1514
styles: [
1615
`
1716
::ng-deep .bg-light-red {

0 commit comments

Comments
 (0)