-
-
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
Add advanced options to finetune glob #12055
Comments
After some flexing, a user on Discord pointed me to the right direction which is replacing However, I still think the request is valid to address other issues. Also even tho everything seems to be work fine, i get the following warning now at startup:
Seems like if I have an absolute path in the glob, something will try to treat it as relative path to |
@wintercounter i think there's a bug in the docs code. adding a PR to fix. #12057 |
Egads!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.12 containing PR #12057 that references this issue. Upgrade today to try it out! Closing this issue. Please re-open if you think there's still more to do. |
Thank you, the async option also awesome! OFF TOPIC: Sorry, I didn't want to open a new thread for this :D |
yeah, the async thing is awesome 💯 . i didn't know about it until @ndelangen told me. re: you were using |
Yeah, it's just a typo for sure :)
…On Mon, Aug 17, 2020 at 5:25 PM Michael Shilman ***@***.***> wrote:
yeah, the async thing is awesome 💯 . i didn't know about it until
@ndelangen <https://github.com/ndelangen> told me.
re: addDecorator, perhaps that's a regression? i don't think we intended
to break that. cc @tmeasday <https://github.com/tmeasday>
you were using addDecorator and not addDecorators, right? AFAIK there is
no addDecorators.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12055 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHLJQCFMUIAS3WSPQAWWADSBFDWBANCNFSM4QAWLLOQ>
.
|
Can we open an new issue for the decorator thing?, sounds like a bug for sure. |
@tmeasday i think |
No, I meant it's just a typo here :) But this was during migrating already working code from the old API. Created new issue: #12100 |
Is your feature request related to a problem? Please describe.
I have an issue with story loading in v6. The way changed how story files pattern is defined is causing a problem for us. Now it's only glob and only relative to main.js. We provide a global storybook instance to all our packages/projects (100+) so they can have all the same company standards, keep up to date easily, and they don't need to litter their machine with hundreds of Storybook installations.
Until now we used it like this:
@ is resolved by Webpack to
process.cwd() + 'src'
. Seems like this is not possible in v6 now and on Windows it's an even bigger problem as glob doesn't suppose to understand Windows paths, so first I'd need to convert paths back and forth which is a nightmare, but anyway, it won't understand what is C: at the beginning either.I also saw people having issues where they used complex filtering before, which is not possible now. Adding this would solve that problem also.
Another problem I saw is being able to pass options to minimatch. This could solve that also.
Describe the solution you'd like
I'd like to add advanced options to be able to configure globs, defined as an object.
Are you able to assist bring the feature to reality?
Yes
The text was updated successfully, but these errors were encountered: