-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Programmatic way to launch Storybook #146
Comments
You can change the config directory using this API: https://github.com/kadirahq/react-storybook/blob/master/docs/configure_storybook.md#configuration-directory You may use shelljs to run the storybook command. |
But can I change the |
We have many config files, so it's always better to store them in a directory. (even if you've just the So, I think changing that's not ideal. |
Hi @mquandalle import storybook from '@kadira/storybook/dist/server/middleware';
// ...
app.use(storybook(configDirectory));
// ... Check this line Related: #208 |
In an application I’m developing I have a root directory called
tools/
that contains various things to spawn Webpack dev server, or Graph_i_QL, or run scripts. I would like to define Storybook configuration intools/storybook.js
and be able to call it using JavaScript methods instead of using thestart-storybook
command line interface. That would allow things like:How to do that?
The text was updated successfully, but these errors were encountered: