Executes the default sub-generator app
from a generator.
generate("generator-from-npm", options);
generate(require.resolve("./local-generator"), options);
is the name or path of the generator. If it is a local path, use require.resolve
or provide an absolute path.
are the options for the generator.
Executes a sub-generator from a generator.
generate("generator-from-npm", "sub-generator");
generate(require.resolve("./local-generator"), "sub-generator", options);
is the name or path of the generator. If it is a local path, use require.resolve
or provide an absolute path.
is the name of the generator.
are the new options added on top of curent options.
Creates a skeleton Node.js project for a generator (pg-generator plugin).
is the name to create scaffold from.
Generated using TypeDoc
Context provided to render function.