Skip to content

Commit 549fcc7

Browse files
committed
feat(vsa): change folder structure to add vertical slice architecture
closes #413
1 parent 815c831 commit 549fcc7

File tree

156 files changed

+598
-600
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+598
-600
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030

3131
/* Bootstrap settings */
3232
// Set initial config and enable jest-extended features
33-
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.ts', 'jest-extended/all'],
33+
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.ts'],
3434

3535
/* Global test settings */
3636
// Automatically clear mock calls and instances between every test

package-lock.json

Lines changed: 337 additions & 337 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@
6464
"dependencies": {
6565
"@ngneat/falso": "^7.2.0",
6666
"@prisma/client": "^5.10.2",
67-
"@tsed/ajv": "^7.62.2",
68-
"@tsed/common": "^7.62.2",
69-
"@tsed/components-scan": "^7.62.2",
70-
"@tsed/core": "^7.62.2",
71-
"@tsed/di": "^7.62.2",
72-
"@tsed/exceptions": "^7.62.2",
73-
"@tsed/ioredis": "^7.62.2",
74-
"@tsed/json-mapper": "^7.62.2",
67+
"@tsed/ajv": "^7.62.3",
68+
"@tsed/common": "^7.62.3",
69+
"@tsed/components-scan": "^7.62.3",
70+
"@tsed/core": "^7.62.3",
71+
"@tsed/di": "^7.62.3",
72+
"@tsed/exceptions": "^7.62.3",
73+
"@tsed/ioredis": "^7.62.3",
74+
"@tsed/json-mapper": "^7.62.3",
7575
"@tsed/logger": "^6.6.3",
76-
"@tsed/openspec": "^7.62.2",
77-
"@tsed/platform-express": "^7.62.2",
78-
"@tsed/prisma": "^7.62.2",
79-
"@tsed/schema": "^7.62.2",
80-
"@tsed/swagger": "^7.62.2",
76+
"@tsed/openspec": "^7.62.3",
77+
"@tsed/platform-express": "^7.62.3",
78+
"@tsed/prisma": "^7.62.3",
79+
"@tsed/schema": "^7.62.3",
80+
"@tsed/swagger": "^7.62.3",
8181
"ajv": "^8.12.0",
8282
"argon2": "^0.40.1",
8383
"body-parser": "^1.20.2",
@@ -134,18 +134,18 @@
134134
"@types/luxon": "^3.4.2",
135135
"@types/method-override": "^0.0.35",
136136
"@types/multer": "^1.4.11",
137-
"@types/node": "^20.11.24",
137+
"@types/node": "^20.11.25",
138138
"@types/node-emoji": "^1.8.2",
139139
"@types/source-map-support": "^0.5.10",
140140
"@types/supertest": "^6.0.2",
141141
"@types/swagger-schema-official": "^2.0.25",
142142
"@types/uuid": "^9.0.8",
143-
"@typescript-eslint/eslint-plugin": "^7.1.0",
144-
"@typescript-eslint/parser": "^7.1.0",
143+
"@typescript-eslint/eslint-plugin": "^7.1.1",
144+
"@typescript-eslint/parser": "^7.1.1",
145145
"commitizen": "^4.3.0",
146146
"copyfiles": "^2.4.1",
147147
"cross-env": "^7.0.3",
148-
"cspell": "^8.5.0",
148+
"cspell": "^8.6.0",
149149
"cz-conventional-changelog": "^3.3.0",
150150
"eslint": "^8.57.0",
151151
"eslint-config-airbnb-base": "^15.0.0",
@@ -159,7 +159,7 @@
159159
"eslint-plugin-jest": "^27.9.0",
160160
"eslint-plugin-jest-extended": "^2.0.0",
161161
"eslint-plugin-jsonc": "^2.13.0",
162-
"eslint-plugin-markdown": "^3.0.1",
162+
"eslint-plugin-markdown": "^4.0.1",
163163
"eslint-plugin-n": "^16.6.2",
164164
"eslint-plugin-optimize-regex": "^1.2.1",
165165
"eslint-plugin-prefer-arrow": "^1.2.3",
@@ -198,15 +198,15 @@
198198
"tsc-alias": "^1.8.8",
199199
"tsconfig-paths": "^4.2.0",
200200
"tsx": "^4.7.1",
201-
"typescript": "^5.3.3",
201+
"typescript": "^5.4.2",
202202
"yaml-eslint-parser": "^1.2.2"
203203
},
204204
"engines": {
205205
"node": ">=20.9.0",
206206
"npm": ">=6.7.0"
207207
},
208208
"prisma": {
209-
"schema": "src/infrastructure/shared/persistence/prisma/schema.prisma",
210-
"seed": "tsx src/infrastructure/shared/persistence/prisma/seed.ts"
209+
"schema": "src/shared/infrastructure/persistence/prisma/schema.prisma",
210+
"seed": "tsx src/shared/infrastructure/persistence/prisma/seed.ts"
211211
}
212212
}

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import 'source-map-support/register';
44
import { PlatformExpress } from '@tsed/platform-express';
55
import * as emoji from 'node-emoji';
66

7-
import { Logger } from '@domain/shared';
8-
import { bootstrap } from '@infrastructure/shared';
97
import { Server } from '@presentation/rest/server';
8+
import { Logger } from '@shared/domain';
9+
import { bootstrap } from '@shared/infrastructure';
1010

1111
const start = async (): Promise<void> => {
1212
await bootstrap();

src/application/health/check-health-status.request.ts renamed to src/modules/health/application/check-health-status.request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { UseCaseRequest } from '@application/shared';
2-
import { TriggeredBy } from '@domain/shared/entities/triggered-by';
1+
import { UseCaseRequest } from '@shared/application';
2+
import { TriggeredBy } from '@shared/domain/entities/triggered-by';
33

44
class CheckHealthStatusRequest extends UseCaseRequest {
55
readonly appVersion: string;

src/application/health/check-health-status.usecase.ts renamed to src/modules/health/application/check-health-status.usecase.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { BaseUseCase, UseCase } from '@application/shared';
2-
import { HealthStatus } from '@domain/health';
1+
import { HealthStatus } from '@modules/health/domain';
2+
import { BaseUseCase, UseCase } from '@shared/application';
33

44
import { CheckHealthStatusRequest } from './check-health-status.request';
55
import { HealthStatusResponse } from './health-status.response';

src/application/health/health-status.response.ts renamed to src/modules/health/application/health-status.response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HealthStatus } from '@domain/health';
1+
import { HealthStatus } from '@modules/health/domain';
22

33
class HealthStatusResponse {
44
readonly status: string;
File renamed without changes.

src/domain/health/health-status.ts renamed to src/modules/health/domain/health-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DomainEntity } from '@domain/shared/entities';
1+
import { DomainEntity } from '@shared/domain/entities';
22

33
class HealthStatus extends DomainEntity {
44
readonly status: string;
File renamed without changes.

0 commit comments

Comments
 (0)