Hi! I'm Joel and I got tired of creating the same file structure everytime I made a new component. To solve that hassle I made the Little Template Maker. Your lean mean templating machine.
- Hit
Cmd+P
and write "Little Template Maker
". - Pick your template and follow the guide.
- Pick a template
- Pick an existing folder
- Optionally add the name of a new child folder to add the template into
- Loop thru template variables and assign them
- 💃🕺🍦 Enjoy your new files
When you run the command the first time it creates a /.templates
folder in your project. Within that folder you build your template with .handlebars
files.
- Each template must be a child directory of
/.templates
- Use Handlebars syntax for creating variables, like so "
{{allYourBaseAreBelongsToUs}}
" - Within a template you can use folders, files, all the good stuff.
- The Little Template Maker will strip all
.handlebars
files of their extension. If you want your generated file to be namedComponent.tsx
the template filename should beComponent.tsx.handlebars
.
🚀🚀🚀 Check out my other components: https://marketplace.visualstudio.com/publishers/se-joelsanden