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
Yeoman composeWith has option to pass options object from main generator to sub generator. The options must be provided as parameter in composeWith call
Yeoman has run loop priority where Initializing comes before Prompting
#Problem
If we want to provide options for sub-generator, then composeWith must be called after main-generator completes prompting.
If we composeWith, after main-generator prompting, (let say writing() of the main-generator) - then the run loop will put sub-generator prompting() , in higher priority - causing user needs to press Enter twice on the second question during sub-generator prompting.
#Question
Is there any strategy, that we can define composeWith during Initializating() and provide reference to the future options after main-generator prompting() ?
The text was updated successfully, but these errors were encountered:
Is there any strategy, that we can define composeWith during Initializating() and provide reference to the future options after main-generator prompting() ?
That's not possible, but also you shouldn't need to do this.
I don't understand what's the problem with calling composeWith after the main generator prompting phase. If you want to skip the second generator prompts when options are provided, you need to implement this yourself (for example by using the prompt when option.)
All phases of every generator will always run. There's no way to skip phases.
#Backgound
#Problem
#Question
The text was updated successfully, but these errors were encountered: