In ngxs cli documentation there is an option to use plopfile. I played with it for a while but couldn't figure out how to make it work.
Does anybody know how to use plop with ngxs ?
In ngxs cli documentation there is an option to use plopfile. I played with it for a while but couldn't figure out how to make it work.
Does anybody know how to use plop with ngxs ?
Copyright © 2021 Jogjafile Inc.
NGXS has it's own
plopfileit uses for the CLI commands it offers. They have allowed developers to use their ownplopfileto extend these templates.Using the basic example as per the plopjs website, create a
plopfilein your root, and call it whatever:custom-plopfile.js:To execute this, you could run:
ngxs --plopfile ./custom-plopfile.js GreetingControllerand it will use the custom plopfile and template, to generate a new controller for you assrc/GreetingController.js.