Replies: 1 comment
-
Gosh, sorry - issues and discussions being separated meant I couldn't find it. #25510 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
We're using the storybook CLI as a spawned process from another CLI which helps scaffold projects. Since we're taking steps after initializing Storybook in our directory, we do not want to run
dev
after initialization.Describe the solution you'd like
I'd like to introduce an optional CLI option for the
init
command called--no-dev
which, when set, disables launching the Storybook dev mode on completion of the initiate command. This argument would take precedence over the default behavior, which is to run dev if theCI
orIN_STORYBOOK_SANDBOX
environment variables are set.storybook/code/lib/cli/src/initiate.ts
Line 408 in 7b2ddea
Describe alternatives you've considered
To accomplish this today, we either need to pass the
CI
environment variable when we spawn the process on a developer's machine (which definitely is a smell), or snoop the stdout of the spwaned process and kill it when we see messages indicating storybook has started (which is really nasty).Are you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions