UNPKG

plop

Version:

Micro-generator framework that makes it easy for an entire team to create files with a level of uniformity

18 lines (17 loc) 316 B
export default function (plop) { plop.setGenerator("test", { description: "this is a test", prompts: [ { type: "input", name: "name", message: "What is your name?", }, ], actions: [ () => { throw new Error("Action failed"); }, ], }); }