yingzi 560ebdb4b8 修改 2 năm trước cách đây
..
.circleci a6e36702ec 2023-3-1 2 năm trước cách đây
.idea 560ebdb4b8 修改 2 năm trước cách đây
lib da3948d03d 修改 2 năm trước cách đây
node_modules 560ebdb4b8 修改 2 năm trước cách đây
types da3948d03d 修改 2 năm trước cách đây
.eslintrc.js da3948d03d 修改 2 năm trước cách đây
LICENSE a6e36702ec 2023-3-1 2 năm trước cách đây
README.md a6e36702ec 2023-3-1 2 năm trước cách đây
package.json da3948d03d 修改 2 năm trước cách đây
tsconfig.json a6e36702ec 2023-3-1 2 năm trước cách đây

README.md

Node-Plop

npm CircleCI

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.

Once I feel comfortable that this code functions as it should. I'll be driving the plop CLI tool using node-plop.

const nodePlop = require('node-plop');
// load an instance of plop from a plopfile
const plop = nodePlop(`./path/to/plopfile.js`);
// get a generator by name
const basicAdd = plop.getGenerator('basic-add');

// run all the generator actions using the data specified
basicAdd.runActions({name: 'this is a test'}).then(function (results) {
  // do something after the actions have run
});