0.1.4 • Published 5 years ago
tpl-stencil v0.1.4
tpl-stencil
This is a node command-line tool that automatically creates files from templates
Start
install
npm install -g tpl-stencil
Register the github user name, repos name, and branch name where your templates are stored
tpl config
Enter the user name, repos name and branch name as prompted
Usage
Init from template in repos
tpl init <tpl-name> [local-path]
example
tpl init myComponent src/views/components/helloComponent
The template can be a folder or a separate file. If there is no local-path, it is inited by default in the root directory with the same file name as the template file name
Create from template in local
tpl create <tplrc-name> <local-path>
example
tpl create component src/views/components/helloComponent