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
(Documentation) glob pattern support for stories config option #10153
Comments
It seems this page is the right place to place this info: I think the page is missing on current docs and also on next docs We should fix that. @matthias-ccri would you be able to assist? |
Sure thing — here's a PR: #10196 |
Thank you! |
This information from this issue is outdated, and at the same time, one of the top google results. If you (like me) are confused about Storybook's
Hope this helps! (it took me a bit of digging to find all of that out) Update [12/2021]The story match glob algorithm keeps evolving. A recent change (I'm on To debug it, I opened console.trace(`story matcher: ${JSON.stringify(result, null, 2)}`); |
Hi folks! Thanks for the awesome product.
TLDR: This issue is a request to document the fact that storybook uses glob for the
stories
config.It seems like the
stories
option in.storybook/main.js
is being parsed by glob, but I don't think this is documented.In the React Guide, it hints at some pattern matching support but doesn't exactly say what's supported:
Under "Step 3: Create the main file", it uses a pattern:
P.S. My use case is that I wanted to match all of these file extensions: js, jsx, ts, tsx. I was able to do it with this pattern:
../src/**/*.stories.{js,ts,jsx,tsx}
The text was updated successfully, but these errors were encountered: