Skip to content
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

Conditional prompts #36

Closed
mehcode opened this issue Feb 5, 2013 · 3 comments
Closed

Conditional prompts #36

mehcode opened this issue Feb 5, 2013 · 3 comments

Comments

@mehcode
Copy link

mehcode commented Feb 5, 2013

I hate to ask an "is it possible" question but I can't seem to find a yes anywhere so I'm going to assume it isn't possible. I'd like to have conditional prompts. Such as only show these prompts if this function returns true (in which this function has the values from the previous prompts).

A dialog along these lines is what I'm looking for:

# Asking which preprocessor to use...
$ Stylesheet preprocessor (sass/none) [none] ? 
sass

# Iff sass was chosen...
$ SASS standard library (compass/bourbon/none) [none] ?
# ... else it would default to none

Thanks and apologies if this is possible and I'm just being blind about seeing how.

@tkellen
Copy link
Member

tkellen commented Feb 5, 2013

In a few weeks, the entire grunt-init project is going to be deprecated. The next release of Yeoman is going to replace it/expose this stuff:
https://github.com/yeoman/generator/wiki

@mehcode
Copy link
Author

mehcode commented Feb 5, 2013

I'm well aware of the transition; I just thought it was going to be months not weeks. Thanks for letting me know the time frame; I appreciate it. I'll take a hand at converting https://github.com/chaplinjs/grunt-init-chaplin over to a generator soon.

@tkellen
Copy link
Member

tkellen commented Feb 5, 2013

We had a great meeting with the Yeoman team last week about this stuff. You might wish to contact them about the timeframe, but for us, as soon as we can replace our existing init templates with yeoman generators, we're ready to close up shop on grunt-init. @cowboy, can you just confirm that is your thinking here as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants