Supercharge Your Development with Templates: Code Faster, Build Better!
Templates is a powerful filesystem generator that aims to simplify the process of getting started with and maintaining code applications. Its purpose is to provide developers with a friendly tool that streamlines their common day-to-day workflows. The versatility of templates extends to various scenarios, such as creating web applications in any programming language or generating new sections within a project, such as web controllers with unit tests or React components integrated with Redux and TypeScript.
This project was inspired from create-components-react
npm install -g templates-mo
When making changes to templates, to test changes using tps cli use the ./.bin/cli
file.
./.bin/cli react-component App
Run all unit tests
!WARNING: We dont recommend running all tests. This creates a lot of files and folders. Push your changes up to your branch and let github actions handle running these tests.
> npx jest
Run single unit tests
> npx jest path/to/file
you can debug tests or cli commands by using the DEBUG
env variable. This will force templates to print out valuable information about the build process and the steps it took to get there.
DEBUG=tps npx jest path/to/file
or cli
DEBUG=tps ./.bin/cli react-component App