Node-Plop
This is an early publication of the plop core logic being removed from the CLI tool. Main purpose for this is to make it easier for others to automate code generation through processes and tools OTHER than the command line. This also makes it easier to test the code functionality of PLOP without needing to test via the CLI interface.
This is the backend code that drives the plop CLI tool using node-plop.
import nodePlop from 'node-plop';
const plop = await nodePlop(`./path/to/plopfile.js`);
const basicAdd = plop.getGenerator('basic-add');
basicAdd.runActions({name: 'this is a test'}).then(function (results) {
});