A set of utilities for the static pug template.
# npm
$ npm i pw-tpl -g
#yarn
$ yarn global add pw-tpl
Loads the newest template image into the current working directory.
First of all you need to set global variable GITLAB_API_TOKEN
with your GitLab private token.
Then run:
$ pw-tpl init
And enter the name of new project.
Adding new module template into src/modules
directory.
$ pw-tpl add:module [options] <name>
-js
Includes js module file.
-vue
Includes Vue file instead of pug template.
-tests
Includes js test file.