yeoman / yeoman-api

MIT License
1 stars 2 forks source link

add call back function support to decide generator scheduling #6

Closed dwarakaprasad closed 6 months ago

dwarakaprasad commented 6 months ago

This PR expands ComposeOptions.schedule option to allow a function to decide the scheduling.

function: generater: Basegenerator => boolean

The function receives the generator instance as the parameter and must return a boolean that will decide the scheduling. A true return value schedules the generator to be run under environment:run loop and a false queues the generator tasks immediately.

requiredby jhipster/generator-jhipster#25445