Experience-Monks / nyg

Not another yeoman generator, a simplified project generator based around prompts and events.
MIT License
12 stars 2 forks source link

options + save config #19

Closed mikkoh closed 8 years ago

mikkoh commented 8 years ago

This pull request allows for passing an options object along with globs and prompts.

This options objects values will be merged into store. This means you could for instance hardcode a date or commit number or something that would not be prompted for.

I also added the ability to pass in a value saveConfig which would allow for the user to be able to choose whether a config file will be saved. The neat thing is that that this value is checked from this.config.get('saveConfig') which means that you could even get the users prompt for this.

njam3 commented 8 years ago

You're on fire! @mikkoh

mikkoh commented 8 years ago

Yeah I'm so on fire I'm tempted to write some unit tests.