tmpl
Jacob's Project Templating Tool.
git
repositorypnpm i -g @jacoblincool/tmpl
It is intended to be an interactive tool, but it can be used in a non-interactive way.
Use
tmpl --help
/tmpl <command> --help
to see all the options.
cd
into the directory you want to make a template of, and run:
tmpl make
It will prompt you for a name and do the rest for you.
You can use variables in your template.
Use $#VAR#$
to mark a variable of name VAR
.
Template variables are case-insensitive.
Character range: A-Z
(a-z
), 0-9
, _
, .
, and -
.
cd
into the directory you want to use the template in, and run:
tmpl use
It will give you a list of templates to choose from and do the rest for you.
If there are any files that already exist, it will prompt you to overwrite them or not.
It will give you a list of existing templates.
tmpl list
Sometimes you want to see what a template is before using it. You can do that with:
tmpl list
It will show you the file structure and variables of the template.
This tool uses git
under the hood to manage templates.
By leveraging the power of git
, you can import templates from any remote repository.
tmpl import
It will prompt you for a remote repository URL and a (local) name for the template.
It can also be used as a library.
See the documentation for more information.
Generated using TypeDoc