Commands
#
Initialize a Boilerplate LibraryCall this command to initialize a new Boil template directory. This generates a .boilerplate
folder at the root of your current directory. It contains an example template folder called component
as well as a global.args.yml
file and a template function.
info
See here for more details on the template folder structure, syntax and purpose of the *.args.yml
files.
#
Create a New TemplateCreate a new template directory using this command.
It will generate a new folder in the .boilerplate
directory, with the provided name, as well as a local.args.yml
file. You can optionally pass in a list of arguments to pre-fill the local.args.yml
file with settings for local arguments.
Here's some examples.
#
Create a New Template FunctionCreate a new boilerplate template function.
This generates a *.js
file in the .boilerplate
directory with the provided name.
Here's an example.
#
Cook Up Some BoilerplateThis is what you'll do when you want to generate boilerplate from one of your templates.
After entering the command below, the CLI will prompt you where you'd like to save the generated boilerplate files and/or folders.
Here's some examples.
Don't worry if you can't remember what argument inputs are required for a template. If you simply type boil up [TEMPLATE NAME]
(without any arguments) then you'll get a summary table of all required inputs.
Here's an example output.
#
List All TemplatesIf you want to see a list of all templates in your boilerplate directory then use the command below.