Skip to content

Commit 87c918e

Browse files
committed
Use barrel exports, and add global workflows
1 parent e53e882 commit 87c918e

File tree

21 files changed

+52
-39
lines changed

21 files changed

+52
-39
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@
2020
{ "rule": "@typescript-eslint/no-unused-vars", "severity": "error" },
2121
{ "rule": "@typescript-eslint/no-explicit-any", "severity": "warn" },
2222
{ "rule": "import/order", "severity": "warn" }
23-
]
23+
],
24+
"eslint.format.enable": true,
25+
"eslint.run": "onSave"
2426
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export { Block } from './block';
2+
export { Cycle } from './cycle';
3+
export { Exercise } from './exercise';
4+
export { Program } from './program';
5+
export { Session } from './session';
6+
export { Set } from './set';
7+
export { User } from './User';

apps/pwrprogram/src/mappers/block.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BlockDTO } from '@pwrprogram/shared';
22
import { plainToInstance } from 'class-transformer';
33

4-
import { Block } from '../entity/block';
4+
import { Block } from '../entity';
55
import { buildBlockLinks } from '../utils/hateoas';
66
import { handleMapperError } from '../utils/mapper.utils';
77

apps/pwrprogram/src/mappers/cycle.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CycleDTO } from '@pwrprogram/shared';
22
import { plainToInstance } from 'class-transformer';
33

4-
import { Cycle } from '../entity/cycle';
4+
import { Cycle } from '../entity';
55
import { buildCycleLinks } from '../utils/hateoas';
66
import { handleMapperError } from '../utils/mapper.utils';
77

apps/pwrprogram/src/mappers/exercise.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ExerciseDTO } from '@pwrprogram/shared';
22
import { plainToInstance } from 'class-transformer';
33

4-
import { Exercise } from '../entity/exercise';
4+
import { Exercise } from '../entity';
55
import { buildExerciseLinks } from '../utils/hateoas';
66
import { handleMapperError } from '../utils/mapper.utils';
77

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export * from './block.mapper';
2+
export * from './cycle.mapper';
3+
export * from './exercise.mapper';
4+
export * from './program.mapper';
5+
export * from './session.mapper';
6+
export * from './set.mapper';
7+
export * from './user.mapper';

apps/pwrprogram/src/mappers/program.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { ProgramDTO } from '@pwrprogram/shared';
33
import { plainToInstance } from 'class-transformer';
44

5-
import { Program } from '../entity/program';
5+
import { Program } from '../entity';
66
import { buildProgramLinks } from '../utils/hateoas';
77
import { handleMapperError } from '../utils/mapper.utils';
88

apps/pwrprogram/src/mappers/session.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { SessionDTO } from '@pwrprogram/shared';
22
import { plainToInstance } from 'class-transformer';
33

4-
import { Session } from '../entity/session';
4+
import { Session } from '../entity';
55
import { buildSessionLinks } from '../utils/hateoas';
66
import { handleMapperError } from '../utils/mapper.utils';
77

apps/pwrprogram/src/mappers/set.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { SetDTO } from '@pwrprogram/shared';
22
import { plainToInstance } from 'class-transformer';
33

4-
import { Set } from '../entity/set';
4+
import { Set } from '../entity';
55
import { buildSetLinks } from '../utils/hateoas';
66
import { handleMapperError } from '../utils/mapper.utils';
77

apps/pwrprogram/src/mappers/user.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { UserResponseDTO } from '@pwrprogram/shared';
22

3-
import { User } from '../entity/User';
3+
import { User } from '../entity';
44
import { buildUserLinks } from '../utils/hateoas';
55

66
export function toUserDTO(entity: User): UserResponseDTO {

0 commit comments

Comments
 (0)