node-plop
programmatic plopping for fun and profit
Last updated 4 years ago by crutchcorn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-plop 
SYNC missed versions from official npm registry.

Node-Plop

npm GitHub actions

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';
// load an instance of plop from a plopfile
const plop = await 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
});

Current Tags

  • 0.31.0                                ...           latest (4 years ago)

42 Versions

  • 0.31.0                                ...           4 years ago
  • 0.30.1                                ...           4 years ago
  • 0.30.0                                ...           4 years ago
  • 0.30.0-alpha.1                                ...           4 years ago
  • 0.26.3                                ...           4 years ago
  • 0.26.2                                ...           6 years ago
  • 0.26.1                                ...           6 years ago
  • 0.26.0                                ...           6 years ago
  • 0.25.0                                ...           6 years ago
  • 0.24.0                                ...           6 years ago
  • 0.23.0                                ...           6 years ago
  • 0.22.0                                ...           6 years ago
  • 0.21.0                                ...           6 years ago
  • 0.20.0                                ...           6 years ago
  • 0.19.0                                ...           7 years ago
  • 0.18.0                                ...           7 years ago
  • 0.17.4                                ...           7 years ago
  • 0.17.3                                ...           7 years ago
  • 0.17.2                                ...           7 years ago
  • 0.17.1                                ...           7 years ago
  • 0.17.0                                ...           7 years ago
  • 0.16.0                                ...           8 years ago
  • 0.15.0                                ...           8 years ago
  • 0.13.0                                ...           8 years ago
  • 0.12.0                                ...           8 years ago
  • 0.9.0                                ...           9 years ago
  • 0.8.0                                ...           9 years ago
  • 0.7.1                                ...           9 years ago
  • 0.7.0                                ...           9 years ago
  • 0.6.0                                ...           9 years ago
  • 0.5.5                                ...           9 years ago
  • 0.5.4                                ...           9 years ago
  • 0.5.3                                ...           9 years ago
  • 0.5.2                                ...           9 years ago
  • 0.5.1                                ...           9 years ago
  • 0.5.0                                ...           9 years ago
  • 0.4.2                                ...           9 years ago
  • 0.4.1                                ...           9 years ago
  • 0.4.0                                ...           9 years ago
  • 0.3.0                                ...           9 years ago
  • 0.2.0                                ...           9 years ago
  • 0.0.1                                ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 1
This Month 24
Last Day 1
Last Week 24
Last Month 2
Dependencies (13)
Dev Dependencies (11)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |