@koober/plop-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Plop Documentation plugin (@koober/plop-plugin)

NPM Version License

PlopJS generic plugin interface

Installation

npm install --save-dev @koober/plop-plugin

Usage

In the plopfile.js of your project

// @ts-check
// eslint-disable-next-line import/no-extraneous-dependencies
const { PlopPlugin } = require('@koober/plop-plugin');
const PlopDoc = require('@koober/plop-doc');

module.exports = (
  /** @type {import('@koober/plop-plugin').PlopModule} */
  plop
) => {
  // apply
  PlopPlugin.apply(
    plop,
    // Combine all plugins
    PlopPlugin.compose(
      PlopDoc.default(plop, {
        templates: {},
      }),
      // Custom plugin
      PlopPlugin.merge({
        generators: {
          // Put plugin here
        },
        helpers: {},
      })
    )
  );
};

License

MIT © Julien Polo julien.polo@koober.com

Readme

Keywords

Package Sidebar

Install

npm i @koober/plop-plugin

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

21 kB

Total Files

20

Last publish

Collaborators

  • jarvis_koober
  • alexwf.koober
  • jpolo
  • alexandrech
  • avatar-koober