create and use boilerplate
bp <name> <dir> [--create]
name
: Name of the boilerplate file you are creating or usingdir
: The directory you are creating from or scaffolding to
If --create
is provided, it will create the boilerplate, otherwise it scaffolds.
npm install --global jamen/bp
Here is some examples
bp js js-boilerplate --create
js-boilerplate
is a directory that contains any files + a boilerplate.json
, which may contain:
{
"prompts": [
{ "name": "data_name",
"type": "text",
"message": "kek?" },
// ...
]
}
To scaffold just provide boilerplate file and destination:
bp js my-project