onebeyond / cuckoojs

A NestJS based template builder with some extras
MIT License
8 stars 0 forks source link

Support all the options from nest cli #15

Open inigomarquinez opened 1 year ago

inigomarquinez commented 1 year ago

When creating a new app (nest new <app>), nest cli offers several options that we should also accept to be fully compatible

neodmy commented 1 year ago

The NestJS CLI supports the following options for the new command:

From that list, the NestJS application schematic supports the following:

It means that the following are additional actions taken care of by the NestJS CLI:

Since our primary goal is to generate as few dependencies as possible to the NestJS CLI in Cuckoo while maintaining compatibility, it might be worth considering using the NestJS CLI programmatically instead of the NestJS application schematic. In that case, we could change the way we handle the new command in Cuckoo by:

The downsides of this approach are:

The alternative would be that we still use the application schematic to generate the NestJS application. However, we would still need to take care of the additional actions not supported by the such schematic. In my opinion, this approach generates more coupling to the Nest CLI and unnecessary replication of the code that is already present on the NestJS CLI.

cc/ @inigomarquinez