plop-pack-npm-install
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Plop Pack Npm Install

npm

Useful to have action for PlopJS. This action runs npm install on the respective path passed to it.

Installation

npm i plop-pack-npm-install

Example

module.exports = function(plop) {
  // Loads the npmInstall action type
  plop.load('plop-pack-npm-install');
 
  plop.setGenerator('generate', {
    prompts: [
        // ...
    ],
    actions: function(data) {
      const actions = [];
 
      actions.push({
        type: 'npmInstall',
        path: `${process.cwd()}/project-name/`,
        // By default is false, but if "true" will log the output of commands
        verbose: true
      })
    }
  })
}

Readme

Keywords

none

Package Sidebar

Install

npm i plop-pack-npm-install

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

2.41 kB

Total Files

4

Last publish

Collaborators

  • crutchcorn