Skip to content

Yo composability and run loop priority #1100

@cakriwut

Description

@cakriwut

#Backgound

  1. Yeoman composeWith has option to pass options object from main generator to sub generator. The options must be provided as parameter in composeWith call
  2. Yeoman has run loop priority where Initializing comes before Prompting

#Problem

  1. If we want to provide options for sub-generator, then composeWith must be called after main-generator completes prompting.
  2. 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

  1. Is there any strategy, that we can define composeWith during Initializating() and provide reference to the future options after main-generator prompting() ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions