@mycli-cli/domain-engine
v1.0.2
Published
DDD domain module generator for MyCLI (Phase 2)
Downloads
265
Maintainers
Readme
@mycli-cli/domain-engine
Phase 2 DDD domain generator for MyCLI.
CLI
my make domain user
my make domain order --fields name:string,total:numberGenerated layout
For my make domain user:
src/domain/user/
entities/User.ts
value-objects/Email.ts
aggregates/UserAggregate.ts
events/UserCreated.ts
index.ts
tests/user.domain.test.ts
src/application/
commands/CreateUserCommand.ts
queries/GetUserQuery.ts
services/UserApplicationService.ts
src/infrastructure/database/
interfaces/IUserRepository.ts
repositories/UserRepository.tsDomain files have no framework, database, or HTTP imports.
Paths
Reads .myclirc.json paths (domain, application, infrastructure) from Phase 1 architecture setup.
Tests
pnpm --filter @mycli-cli/domain-engine test