#How can I add my own schematic?

2 messages · Page 1 of 1 (latest)

pale crescent
#

I use a specific type of service class in my app that extends from a base class. Is there a way to extend nestjs schematics so I don't have to manually duplicate the file each time?

bitter mantle
#

The NestJS CLI uses Angular Schematics for its file generation. You can create your own collection and schematics file and have the Nest CLI generate it. nest-commander has an example of how you can take Nest's existing schematics and extend them