You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome, instead of a preview argument, if we could pass in a --storybook which would create spec/components/stories/link_component_stories.rb.
Is that on anyone's radar? Is there a way to extend generators like that? If not, we could potentially create our own generator which calls out to ViewComponent and also creates a story?
The text was updated successfully, but these errors were encountered:
I agree this would be awesome. I don't think you can extend generators but adding a new one that wraps the VC generator is certainly possible. I don't have a lot of time to work on this personally but a PR would be welcomed.
I'm using the CLI to create components, e.g.
It would be awesome, instead of a preview argument, if we could pass in a --storybook which would create
spec/components/stories/link_component_stories.rb
.Is that on anyone's radar? Is there a way to extend generators like that? If not, we could potentially create our own generator which calls out to ViewComponent and also creates a story?
The text was updated successfully, but these errors were encountered: