hades-cli
Version:
Hades CLI developer tool
169 lines (159 loc) • 16.2 kB
text/typescript
// commands
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleName) '.command-handler.ts'}}
import { Create{{ toPascalCase schema.moduleName }}CommandHandler } from './application/create/create-{{ toKebabCase schema.moduleName }}.command-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleNames) '.command-handler.ts'}}
import { Create{{ toPascalCase schema.moduleNames }}CommandHandler } from './application/create/create-{{ toKebabCase schema.moduleNames }}.command-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/update/update-' (toKebabCase schema.moduleName) '.command-handler.ts'}}
import { Update{{ toPascalCase schema.moduleName }}CommandHandler } from './application/update/update-{{ toKebabCase schema.moduleName }}.command-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleName) '-by-id.command-handler.ts'}}
import { Delete{{ toPascalCase schema.moduleName }}ByIdCommandHandler } from './application/delete/delete-{{ toKebabCase schema.moduleName }}-by-id.command-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleNames) '.command-handler.ts'}}
import { Delete{{ toPascalCase schema.moduleNames }}CommandHandler } from './application/delete/delete-{{ toKebabCase schema.moduleNames }}.command-handler';
{{/notInArray}}
// queries
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/paginate/paginate-' (toKebabCase schema.moduleNames) '.query-handler.ts'}}
import { Paginate{{ toPascalCase schema.moduleNames }}QueryHandler } from './application/paginate/paginate-{{ toKebabCase schema.moduleNames }}.query-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/get/get-' (toKebabCase schema.moduleNames) '.query-handler.ts'}}
import { Get{{ toPascalCase schema.moduleNames }}QueryHandler } from './application/get/get-{{ toKebabCase schema.moduleNames }}.query-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '.query-handler.ts'}}
import { Find{{ toPascalCase schema.moduleName }}QueryHandler } from './application/find/find-{{ toKebabCase schema.moduleName }}.query-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '-by-id.query-handler.ts'}}
import { Find{{ toPascalCase schema.moduleName }}ByIdQueryHandler } from './application/find/find-{{ toKebabCase schema.moduleName }}-by-id.query-handler';
{{/notInArray}}
// events
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/created-' (toKebabCase schema.moduleName) '.event-handler.ts'}}
import { Created{{ toPascalCase schema.moduleName }}EventHandler } from './application/events/created-{{ toKebabCase schema.moduleName }}.event-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/created-' (toKebabCase schema.moduleNames) '.event-handler.ts'}}
import { Created{{ toPascalCase schema.moduleNames }}EventHandler } from './application/events/created-{{ toKebabCase schema.moduleNames }}.event-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/updated-' (toKebabCase schema.moduleName) '.event-handler.ts'}}
import { Updated{{ toPascalCase schema.moduleName }}EventHandler } from './application/events/updated-{{ toKebabCase schema.moduleName }}.event-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/deleted-' (toKebabCase schema.moduleName) '.event-handler.ts'}}
import { Deleted{{ toPascalCase schema.moduleName }}EventHandler } from './application/events/deleted-{{ toKebabCase schema.moduleName }}.event-handler';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/deleted-' (toKebabCase schema.moduleNames) '.event-handler.ts'}}
import { Deleted{{ toPascalCase schema.moduleNames }}EventHandler } from './application/events/deleted-{{ toKebabCase schema.moduleNames }}.event-handler';
{{/notInArray}}
// services
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleName) '.service.ts'}}
import { Create{{ toPascalCase schema.moduleName }}Service } from './application/create/create-{{ toKebabCase schema.moduleName }}.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleNames) '.service.ts'}}
import { Create{{ toPascalCase schema.moduleNames }}Service } from './application/create/create-{{ toKebabCase schema.moduleNames }}.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/paginate/paginate-' (toKebabCase schema.moduleNames) '.service.ts'}}
import { Paginate{{ toPascalCase schema.moduleNames }}Service } from './application/paginate/paginate-{{ toKebabCase schema.moduleNames }}.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/get/get-' (toKebabCase schema.moduleNames) '.service.ts'}}
import { Get{{ toPascalCase schema.moduleNames }}Service } from './application/get/get-{{ toKebabCase schema.moduleNames }}.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '.service.ts'}}
import { Find{{ toPascalCase schema.moduleName }}Service } from './application/find/find-{{ toKebabCase schema.moduleName }}.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '-by-id.service.ts'}}
import { Find{{ toPascalCase schema.moduleName }}ByIdService } from './application/find/find-{{ toKebabCase schema.moduleName }}-by-id.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/update/update-' (toKebabCase schema.moduleName) '.service.ts'}}
import { Update{{ toPascalCase schema.moduleName }}Service } from './application/update/update-{{ toKebabCase schema.moduleName }}.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleName) '-by-id.service.ts'}}
import { Delete{{ toPascalCase schema.moduleName }}ByIdService } from './application/delete/delete-{{ toKebabCase schema.moduleName }}-by-id.service';
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleNames) '.service.ts'}}
import { Delete{{ toPascalCase schema.moduleNames }}Service } from './application/delete/delete-{{ toKebabCase schema.moduleNames }}.service';
{{/notInArray}}
// models
export { {{ toPascalCase schema.boundedContextName }}{{ toPascalCase schema.moduleName }}Model } from './infrastructure/sequelize/sequelize-{{ toKebabCase schema.moduleName }}.model';
{{#each schema.properties.withRelationshipIntermediateTable}}
export { {{ intermediateModel }} } from './infrastructure/sequelize/sequelize-{{ intermediateModelFile }}.model';
{{/each}}
// repository
export { I{{ toPascalCase schema.moduleName }}Repository } from './domain/{{ toKebabCase schema.moduleName }}.repository';
export { Sequelize{{ toPascalCase schema.moduleName }}Repository } from './infrastructure/sequelize/sequelize-{{ toKebabCase schema.moduleName }}.repository';
// sagas
export { {{ toPascalCase schema.moduleName }}Sagas } from './application/sagas/{{ toKebabCase schema.moduleName }}.sagas';
export const {{ toPascalCase schema.boundedContextName }}{{ toPascalCase schema.moduleName }}Handlers = [
// commands
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleName) '.command-handler.ts'}}
Create{{ toPascalCase schema.moduleName }}CommandHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleNames) '.command-handler.ts'}}
Create{{ toPascalCase schema.moduleNames }}CommandHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/update/update-' (toKebabCase schema.moduleName) '.command-handler.ts'}}
Update{{ toPascalCase schema.moduleName }}CommandHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleName) '-by-id.command-handler.ts'}}
Delete{{ toPascalCase schema.moduleName }}ByIdCommandHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleNames) '.command-handler.ts'}}
Delete{{ toPascalCase schema.moduleNames }}CommandHandler,
{{/notInArray}}
// queries
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/paginate/paginate-' (toKebabCase schema.moduleNames) '.query-handler.ts'}}
Paginate{{ toPascalCase schema.moduleNames }}QueryHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/get/get-' (toKebabCase schema.moduleNames) '.query-handler.ts'}}
Get{{ toPascalCase schema.moduleNames }}QueryHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '.query-handler.ts'}}
Find{{ toPascalCase schema.moduleName }}QueryHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '-by-id.query-handler.ts'}}
Find{{ toPascalCase schema.moduleName }}ByIdQueryHandler,
{{/notInArray}}
// events
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/created-' (toKebabCase schema.moduleName) '.event-handler.ts'}}
Created{{ toPascalCase schema.moduleName }}EventHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/created-' (toKebabCase schema.moduleNames) '.event-handler.ts'}}
Created{{ toPascalCase schema.moduleNames }}EventHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/updated-' (toKebabCase schema.moduleName) '.event-handler.ts'}}
Updated{{ toPascalCase schema.moduleName }}EventHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/deleted-' (toKebabCase schema.moduleName) '.event-handler.ts'}}
Deleted{{ toPascalCase schema.moduleName }}EventHandler,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/events/deleted-' (toKebabCase schema.moduleNames) '.event-handler.ts'}}
Deleted{{ toPascalCase schema.moduleNames }}EventHandler,
{{/notInArray}}
];
export const {{ toPascalCase schema.boundedContextName }}{{ toPascalCase schema.moduleName }}Services = [
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleName) '.service.ts'}}
Create{{ toPascalCase schema.moduleName }}Service,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/create/create-' (toKebabCase schema.moduleNames) '.service.ts'}}
Create{{ toPascalCase schema.moduleNames }}Service,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/paginate/paginate-' (toKebabCase schema.moduleNames) '.service.ts'}}
Paginate{{ toPascalCase schema.moduleNames }}Service,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/get/get-' (toKebabCase schema.moduleNames) '.service.ts'}}
Get{{ toPascalCase schema.moduleNames }}Service,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '.service.ts'}}
Find{{ toPascalCase schema.moduleName }}Service,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/find/find-' (toKebabCase schema.moduleName) '-by-id.service.ts'}}
Find{{ toPascalCase schema.moduleName }}ByIdService,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/update/update-' (toKebabCase schema.moduleName) '.service.ts'}}
Update{{ toPascalCase schema.moduleName }}Service,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleName) '-by-id.service.ts'}}
Delete{{ toPascalCase schema.moduleName }}ByIdService,
{{/notInArray}}
{{#notInArray schema.excluded 'src/@hades/' (toKebabCase schema.boundedContextName) '/' (toKebabCase schema.moduleName) '/application/delete/delete-' (toKebabCase schema.moduleNames) '.service.ts'}}
Delete{{ toPascalCase schema.moduleNames }}Service,
{{/notInArray}}
];