plop
Version:
Micro-generator framework that makes it easy for an entire team to create files with a level of uniformity
18 lines (16 loc) • 357 B
JavaScript
const args = process.argv.slice(2);
import { Plop, run } from "../src/plop.js";
import minimist from "minimist";
const argv = minimist(args);
Plop.prepare(
{
cwd: argv.cwd,
preload: argv.preload || [],
configPath: argv.plopfile,
completion: argv.completion,
},
function (env) {
Plop.execute(env, run);
},
);