-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Allow specifiying a path to Histoire config file (or parent directory) #167
Comments
Currently, Histoire looks for its config file(s) only at the current working directory (i.e. usually project root). For example, when you run histoire/packages/histoire/src/node/bin.ts Lines 15 to 21 in a760adf
histoire/packages/histoire/src/node/config.ts Lines 282 to 291 in 2fb86a2
If you want to change this behavior, it would be a feature request. |
@NozomuIkuta I think that behaviour should be changed or at least provide a way of defining where config file is located with an argument. |
For you and authors to design the feature in more detail, here are information about how Histoire related tools handle config file. ViteHistoire is Vite-powoered (or its wrapper), so aligning API with it would be reasonable and intuitive. Vite CLI provides RefsStorybookWhen it comes to "story", it's worth mentioning Storybook. As far as I know, Storybook doesn't provide JavaScript API to run it. RefsLadleLadle is an alternative to Storybook and is referred to in Histoire README. Ladle CLI also provides While Refs
Summary
IMO, |
Describe the bug
I run in to several issues with the following directory structure.
After that I moved the
histoire.config.ts
to the<root>
and then it worked. Why does it need to be in the root folder?Reproduction
Move histoire.config.file to folder
https://stackblitz.com/edit/nuxt3-histoire
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: