Programmatically build scaffolding, powered by Funish.
# npm
$ npm install @funish/scaffolding
# yarn
$ yarn add @funish/scaffolding
# pnpm
$ pnpm add @funish/scaffolding
- You can see giget to fill in the
source
andoptions
parameters. -
target
is the path to the directory where the scaffolding is generated. - The context is an object that can be used in the template, you can see handlebars for more information.
import { createScaffolding } from "@funish/scaffolding";
createScaffolding(
source,
target,
{
// context, e.g. { foo: "bar" }
},
options,
);
See it on JSDoc.