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.ts
and adds it as a provider toapp.module.ts
prisma
: Adds a sampleUser
model to theschema.prisma
fileservice-user
: Adds the necessary imports for@samagra-x/user-service
inapp.module.ts
fixtures
: Generate the docker related files along with the shell sciripts needed to run thepre-commit
file in huskyhusky
: Creates thepre-commit
file in the.husky
foldergithub
: Creates a new.github
folder and theISSUE_TEMPLATE
andWorkflow
subdirectory in it.devcontainer
: Generates thedevcontainer.json
in 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.