Skip to content

marcellino-ornelas/templates

Repository files navigation

Templates

Supercharge Your Development with Templates: Code Faster, Build Better!


npm version PRs Welcome GitHub Actions status GitHub Actions status

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!

Demo template usage gif

Check out our docs

This project was inspired from create-components-react

Installation

npm install -g templates-mo

Development

Accessing dev cli

When making changes to templates, to test changes using tps cli use the ./.bin/cli file.

./.bin/cli react-component App

Testing

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

Debug

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

About

Templates is a powerful filesystem generator that aims to simplify the process of getting started with and maintaining code applications.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •