Introduction
Introduction
While developing this cli, many custom schematics were created to assist the cli in file generation.
In this CLI tool, several new commands have been added to expedite the manual setup of a server environment. Let's delve deeper into each of these commands and understand how they can benefit users:
service-prisma: Creates a newprisma.service.tsand adds it as a provider toapp.module.tsprisma: Adds a sampleUsermodel to theschema.prismafileservice-user: Adds the necessary imports for@samagra-x/user-serviceinapp.module.tsfixtures: Generate the docker related files along with the shell sciripts needed to run thepre-commitfile in huskyhusky: Creates thepre-commitfile in the.huskyfoldergithub: Creates a new.githubfolder and theISSUE_TEMPLATEandWorkflowsubdirectory in it.devcontainer: Generates thedevcontainer.jsonin the .devcontainer directory.
Overall, these commands enhance the usability of your CLI tool by automating repetitive and error-prone tasks, enabling developers to set up their server environments quickly and efficiently. By leveraging these custom schematics, developers can focus more on writing code and less on manual setup, ultimately improving productivity and code quality which is the prime goal for this setup.