Closed stephenplusplus closed 6 years ago
Passy:
+1! This is great!
As Sindre taught me, hiding the technology underneath a prompt in this manner isn't ideal, as it doesn't help a developer learn their craft.
We could show them the command they can use to achieve the same without the interactive prompt before running it. On the other hand, I don't know if the differentiation between flags and prompts makes a whole lot of sense in general when we use this format.
+1
Huge :+1: from me.
:+1:
I created a generator yo dude that its based on other generators
It's mainly to create Mobile Web Apps using Apache Cordova. User first selects one web app generators from a list (dapp, webapp, angular, mobile, polymer, backbone, jquery-mobile) then it runs the generator-cordovacli
In short dude is a generator created of two other generators.
I'm having difficulty on the unit testing side to pass parameters to the other generators from the the main one.
Would the new workflow help make it easier to compose generators of other generators and take testing into account?
@csantanapr Checkout this dicussion over here: https://github.com/yeoman/generator/issues/345
@SBoudrias Thanks for the pointer looked around and didn't find it.
It would be great to revisit implementing this workflow at some point.
I think a nice workflow could look like:
As Sindre taught me, hiding the technology underneath a prompt in this manner isn't ideal, as it doesn't help a developer learn their craft. However, it would be darn cool to let users interact with Yo this way. I just wanted to throw this out there to get feedback/inspire ideas and discussion.
I personally find the
yo generator:subgenerator Something --but-not-this
style non-optimal. Before I understood the difference between yo, a generator, and a subgenerator, I couldn't remember that syntax for the life of me. There are ways to get help (readmes, usage), but it still creates an undesirable delay. In the end,yo generator:subgenerator Something
just isn't pretty. It might just be me, but I think just sayingyo
for scaffolding, using a subgenerator, installing something, getting help, etc. would be much more interactive, friendly, and awesome.