Initialize the builder, providing the file url or file path to the init script. (This is used to find the templates dir via a relative path.)
Parsed command-line values from util.parseArgs()
.
If it ends up being set by a prompt, it'll always be a string, possibly '' if no default is provided.
Fill in all templates and write files to the target directory
Prompt the user for a given value, returning the value they provide,
and saving it to values
for Init#build to consume.
If they have already specified it on the command line, then the prompt is skipped, and this simply returns the value.
If they have set -y
or --yes
on the command line, or if the
npm_config_yes
environment variable is set to "true"
, and a
default is provided, then the prompt is skipped.
Run a command in the target directory.
This can only be done after the build has completed.
Main class instantiated to prompt for values, build up the data object, and run whatever commands are necessary.