Storybook: Solo Mode: generate storybook on empty folder

Created on 23 Sep 2016  路  5Comments  路  Source: storybookjs/storybook

Currently we need to install React Storybook into an app in order to use it.

But it would be pretty useful to run few stories, without a full app. We do it by installing storybook globally.

Then we can run command like this and we get a storybook:

start-storybook -p 6873 path/to/stories

What do you guys think?

cli feature request

Most helpful comment

If so, it's better to use commands I think, e.g:

storybook start -p 6873 path/to/stories
storybook build

All 5 comments

If so, it's better to use commands I think, e.g:

storybook start -p 6873 path/to/stories
storybook build

We should also consider other frameworks. We currently support both React and React Native and there'll be more in the future.

If it'll be used only as a global command, it'll be okay to bundle all frameworks with it and automatically detect the framework when it's executed.

storybook init path/to/stories would also be useful as part of this.

1108 Is where We'll consider this. I think even with just the current CLI it's possible.

With support for multiple app types, this new CLI option would have to ask the user what app they want!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZigGreen picture ZigGreen  路  3Comments

arunoda picture arunoda  路  3Comments

shilman picture shilman  路  3Comments

rpersaud picture rpersaud  路  3Comments

purplecones picture purplecones  路  3Comments