storybookjs / aem

Adobe Experience Manager Storybook app with events, knobs, docs, addons, and more
https://storybook-aem.netlify.com/
MIT License
33 stars 24 forks source link

Generate Stories Using the HTL Engine Method #85

Open megazear7 opened 4 years ago

megazear7 commented 4 years ago

Currently, the sba story command only generates stories that use the fetchFromAEM method. This should be updated to optionally generate stories using the htl-engine method. This should be either configured in the package.json or asked as a user prompt after running the sba story command.

jzeltman commented 4 years ago

It should be asked in the sba story command, and/or have a flag the command responds to. Also, I think there's some additional questions that could be asked that would be more tailored to using the HTL Engine method.

CodeByAlex commented 4 years ago

I think this is definitely a good idea @megazear7

megazear7 commented 4 years ago

Sounds good. Maybe it defaults to asking which method you want to use, but if it is answered in the package.json then it isn't asked in the sba story command, so that the CLI could be configured for easier usage, skipping questions if they are already answered in the config.

CodeByAlex commented 4 years ago

I think that would be a good way to handle it