Skip to content
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

fix(storybook): remove hard-coded ci:true option #9827

Merged
merged 1 commit into from Apr 15, 2022

Conversation

mandarini
Copy link
Member

@mandarini mandarini commented Apr 13, 2022

ISSUES CLOSED: #9681

Current Behavior

This issue is due to this line here.

  return buildDevStandalone({
    ...options,
    ci: true,

our hard-coded ci: true.

In the Storybook docs it says for the --ci option: "CI mode (skip interactive prompts, don't open browser)"

This line ci: true has been there since the beginning of time. It is believed to have been put there back in 2019 to avoid interactive prompts. Interactive prompts no longer happen, even if we remove the ci: true.

Here's the Storybook code for reference:

  if (!options.ci && !options.smokeTest && options.open) {

As to why for pure Storybook apps it opens automatically, it's because this transformation here adds the open: true option. We don't do this step in our server, because we use buildDevStandalone (we will use buildDev eventually):

  const cliOptions = await getDevCli(loadOptions.packageJson);

Expected Behavior

User can pass --open and it will not be ignored.

Related Issue(s)

#9681

@nx-cloud
Copy link

nx-cloud bot commented Apr 13, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 27f01fc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 13 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Apr 13, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nrwl/nx-dev/84Jo5mqBEUHRNzbrtn57oZfWR2mt
✅ Preview: Ignored

[Deployment for 27f01fc canceled]

@Coly010
Copy link
Contributor

Coly010 commented Apr 14, 2022

Is the default behaviour with this change the same as it was before it? It'll run headlessly until the asks otherwise?

Copy link
Contributor

@Coly010 Coly010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@mandarini mandarini enabled auto-merge (squash) April 15, 2022 11:38
@mandarini mandarini merged commit c0de03b into nrwl:master Apr 15, 2022
FrozenPandaz pushed a commit that referenced this pull request Apr 19, 2022
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

open Storybook automatically in the browser
2 participants