PentiaLabs / generator-helix

Generate Helix compliant solutions with Yeoman.
MIT License
40 stars 22 forks source link

Implements #89: Stores Prompt inputs #92

Closed patelcp closed 7 years ago

patelcp commented 7 years ago

Requirements

Store specific Prompts so they can be recalled during future calls to the generator.

Description of the Change

Added Store properties to the Prompts for (Target, Source Folder, and Vendor Prefix). User will always be presented the prompt but default value will be pulled from the stored value.

Benefits

The values selected for Target, Source Folder, and Vendor Prefix when the generator is called in the future so users don't need to fill these values out each time.

Possible Drawbacks

I did notice that the Value is stored for multiple Helix projects. For example, if I create 2 Helix based solutions using this generator, the values (i.e. Vendor) stored may be shared for both. I've read in some cases while doing development the value is stored in global file so will need to test once I've unlinked the generator from my local dev env.

TakeitEasyAlan commented 7 years ago

Thanks @chiragp I was going to do this today, but it is great to have contributions :-)