-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Autoload all /.story.js$/ #1013
Comments
Another common idiom I see is |
IMO it should be able to load any of: A use-case where you want
|
I would rather have an addon that auto loads all my stories when instructed rather than have this behaviour applied by default |
I think the |
If we talk about add this pattern to "getstorybook" as default, I think It's great. It allows people to start writing stories just after adding storybook to their project but also lefts flexibility of manual customization |
I'm gonna toss it into the cli for 3.3. |
@danielduan that sounds great! In #1209 I'd also like the visit the idea of configuring this in a config, much like how you set a |
#1013 autoload all *.stories.js files in cli templates
Works in |
Instead of having consumers require every story file, we can do a glob-pattern match and auto-load.
This is consistent with how tools like jest work.
The text was updated successfully, but these errors were encountered: