-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[idea] call other actions in custom actions (setActionType) #103
Comments
i did a pr for that: plopjs/node-plop#58 |
interesting idea... I'll take a look at your PR for the details |
This feature would be really useful. I have to change encoding of all added files to win1252, so I've created a convert action to do the the job but I've to call it after each add action (dozen of files). Or is it possible to check the return value of the function defined by setActionType and if it's an array, insert it in the current actions array (or add a new special standard action addAction that return an array of actions for this purpose) ? |
…er-0.0.44 Update @types/inquirer to the latest version 🚀
In custom action, it should be possible to call an array of other actions.
e.g.
Then one can use that to define multiply different component generators, e.g. for ui primitives, layouts or more complex components, but all are created with a storybook story and a test.
This would make setActionType much more powerful
The text was updated successfully, but these errors were encountered: