Suggestion
So, as of now, lb4 cli makes immediate files under models, controllers, repositories folders, maybe add a flag while running the generator something like --dirNested asks for the directory path and generates a file in that respective directory.
Use Cases
Some people might need to maintain a directory structure, instead of every file placed in the same dir.
Examples
lb4 controller --dirNested
> Name the directory in which you want to create the controller: UserControllers
> Name of the controller: user
lb4 controller --dirNested
> Name the directory in which you want to create the controller: UserControllers
> Name of the controller: userOrder
The file path for the above files would be like,
controllers/UserControllers/user.controller.ts
controllers/UserControllers/userOrder.controller.ts
If this looks useful, I might work on a PR for this.
Thanks.
Suggestion
So, as of now, lb4 cli makes immediate files under
models, controllers, repositoriesfolders, maybe add a flag while running the generator something like--dirNestedasks for the directory path and generates a file in that respective directory.Use Cases
Some people might need to maintain a directory structure, instead of every file placed in the same dir.
Examples
If this looks useful, I might work on a PR for this.
Thanks.