Supercharge Your Development with Templates: Code Faster, Build Better!
Templates is a scaffolding framework built to streamline development workflows. It makes code generation simple, dynamic, and reusable—whether you're scaffolding individual files, parts of your application, or full project structures. Say goodbye to copy-pasting code and let Templates handle the heavy lifting, so you can focus on building what matters!
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