You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this is somewhere in the middle between bug and improvement.
I have kind of specific situation, but I think lot of users can try to do the same.
So I'm using Lerna for monorepo ReactJS project and plop is configured to 1st fetch list od directories inside ./packages folder as there can be multiple projects inside there and some developer can create new project so I wanted to make it dynamic as possible. I'm achieving using fs from node js and something like:
But then if I try to use plopthro CLI like this: plop styleguide i get:
[ERROR] The "package" prompt did not recognize "styleguide" as a valid list value (ERROR: Cannot read property 'call' of undefined)
Standard option with providing array of objects works, but then i lose dynamic capabilities and have to force developers to change generator every time they make new project (it's not offeten but it could be)
The text was updated successfully, but these errors were encountered:
Try changing the value to be an array of choices instead of a function that returns an array of choices. I think the bypass logic doesn't support the latter interface.
Closing, since @amwmedia provided an alternative API that doesn't seem to have a comment indicating its failure. Please feel free to let us know if that solution didn't work for you
So this is somewhere in the middle between bug and improvement.
I have kind of specific situation, but I think lot of users can try to do the same.
So I'm using Lerna for monorepo ReactJS project and plop is configured to 1st fetch list od directories inside ./packages folder as there can be multiple projects inside there and some developer can create new project so I wanted to make it dynamic as possible. I'm achieving using
fs
from node js and something like:But then if I try to use plopthro CLI like this:
plop styleguide
i get:Standard option with providing array of objects works, but then i lose dynamic capabilities and have to force developers to change generator every time they make new project (it's not offeten but it could be)
The text was updated successfully, but these errors were encountered: