A simple approach to PlopJS with first class TypeScript support and a one-line plopfile.
$ npm i plop dot-plop -D
plopfile.js in your project directory:
- Create a new folder in your project directory called
- Write your generators in TypeScript and put them in
- We put our templates in
.plop/templates/, but you can put them anywhere you like, just so your generators know where they are.
- Write your helpers in TypeScript and put them in
- Write your Inquirer prompts in TypeScript and put them in
plopfrom the command line.
dot-plop will auto discover your generators and helpers. They will have the
same name as their export name.