nest-clean
v1.0.2
Published
Nestjs Clean Architecture CLI Tool
Downloads
9
Readme
nest-clean
Nestjs Clean Architecture CLI Tool
As an example, the resulting folder structure could end like this:
todo
|_application
|_command
|_create-todo.command
|_create-todo.handler
|_domain
|_event
|_todo-created
|_exception
|_todo-id-already-registered
|_model
|_todo
|_todo-id
|_todo-title
|_todo-is-complete
|_repository
|_todos
|_infrastructure
|_controller
|_rest-todo
|_dto
|_todo
|_repository
|_mysql-todos
Usage
$ npm install -g nest-clean
$ nest-clean COMMAND
running command...
$ nest-clean (-v|--version|version)
nest-clean/1.0.1 win32-x64 node-v12.8.0
$ nest-clean --help [COMMAND]
USAGE
$ nest-clean COMMAND
...
Commands
nest-clean bootstrap
Initializes a core
module inside your NestJS application
USAGE
$ nest-clean bootstrap
DESCRIPTION
...
Extra documentation goes here
See code: src\commands\bootstrap.js
nest-clean generate
Generates DDD structured files:
application/command
domain/event
domain/exception
domain/model
domain/repository
domain/value-object
infrastructure/controller
infrastructure/dto
infrastructure/repository
USAGE
$ nest-clean generate
DESCRIPTION
...
Extra documentation goes here
See code: src\commands\generate.js
nest-clean help [COMMAND]
display help for nest-clean
USAGE
$ nest-clean help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help