@koober/plop-plugin
v1.0.4
Published
PlopJS generic plugin interface
Downloads
4
Readme
Plop Documentation plugin (@koober/plop-plugin)
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 [email protected]