-
-
Notifications
You must be signed in to change notification settings - Fork 304
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
Refactoring and imbricate generator #491
Comments
The line where I create the imbricate generator. |
Hey, Currently, there's no easy way to do what you're trying to do. We're currently working to fix that, see #484 and #485. ATM though, the best way would probably to call the extra generator in a hook ( |
Thanks Simon, I re-implement my method like this https://github.com/mazerte/generator-footguard/blob/prompt/footguard-base.js#L130 and it's work. You can close this issues if you want. Or keep it open for Mathieu |
I'll close as we're going to keep track of composability façade on the other issue. |
Hi,
I work on my generator footguard and each release of yeoman generator break my code. Is because I don't use the good feature of yeoman.
In footguard, for generator a backbone collection I use
yo footguard:collection people
and the generator ask my if I want to create the associate model. And I have a generator for thisyo footguard:model person
. But I don't understand how to use the model generator in the collection generator.I try to instantiate the model generator in the collection generator but it's very complex to pass the
env
to the second generator. Each release break this hack, it's not the idea. After I try to use the test helper for do this. I callhelpers.createGenerator
and I pass arguments and answer withhelpers.mockPrompt
. I thinks it's good idea because this part of code is always tested.But two day I pull this master of yeoman generator and this feature don't work.
What is the good way for do that ?
PS: my projet work on
0.16.0
but not onmaster
You can see the bug on my
prompt
branch.I have an other problem for this line base.js#L377 because it always install dependencies after sub-generator call.
Thanks for your help.
Mathieu
The text was updated successfully, but these errors were encountered: