Skip to content

Trying to start storybook from node #27892

Answered by Marklb
isuro asked this question in Documentation
Discussion options

You must be logged in to vote

If I understand what you are asking, you aren't wanting to wrap the cli command, but are wanting to bypass them and call the same function that those parsed arguments would be passed to, right?

The build function that is exported from @storybook/core-server is what I think you want.

async function build(options: any = {}, frameworkOptions: any = {}) {

I don't know if there is any documentation for doing that, but the Angular builders bypass the cli and may be useful as an example.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isuro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants