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

1.2.14 • Public • Published

plop-generators

Plop generators.

Install

# npm
npm i -D plop @rhao/plop-generators

# yarn or pnpm
pnpm add -D plop @rhao/plop-generators

Usage

create a plopfile.js and configure generators

If you use a .cjs configuration file, you must install @esbuild-kit/cjs-loader and require it.

// plopfile.cjs
require('@esbuild-kit/cjs-loader')
const { setupGenerators } = require('@rhao/plop-generators')

module.exports = function (plop) {
  setupGenerators(plop)
}
// plopfile.js
import { setupGenerators } from '@rhao/plop-generators'

export default function (plop) {
  setupGenerators(plop)
}

add script

// package.json
{
  "scripts": {
    "plop": "plop"
  }
}

run command

npm run plop

Package Sidebar

Install

npm i @rhao/plop-generators

Weekly Downloads

124

Version

1.2.14

License

MIT

Unpacked Size

141 kB

Total Files

256

Last publish

Collaborators

  • lei-hh