-
Notifications
You must be signed in to change notification settings - Fork 607
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
[heft] Cannot CI storyshots-puppeteer due to roaming storybook ports #3667
Comments
It'd be pretty straightforward to add the This is where the |
Yeah I'll probably be working on this soon. Seems other technologies like percy/storybook will hit the same requirements. Personally I think static storybook output will be the more valuable of the port and static options; Never built storybook static before but if I understand it correctly, this will be more convenient to CI since it will mean less custom concurrency complexity is required. I'm thinking this could be specified like |
Good news: Turned out the percy/storybook CLI chains the process of building Storybook into the process of capturing images, so I didn't need this after all for that tech. |
I just ran into a similar issue, sharing here in case someone comes across this in the future. I ended up using the undocumented |
Summary
Although we have a working 'heft start --storybook' script, this seems to use a random port each time. The
--port nnnnn
option is not available through heft, nor does there seem to be any way to build storybook to static files instead of starting the server.Storyshots and storyshots-puppeteer can generate code and visual snapshots (respectively) of your Stories, but needs to know where to find the storybook (I believe either by using a static port or using path to static built files). Since neither of these seem to be available with heft storybook support, we seem to be blocked on using this technology ATM through rushstack.
Repro steps
Having a working 'heft start --storybook' script.
Look for ways to specify the port through heft.
Look for ways to heft build storybook to static files.
Expected result:
Perhaps a way to specify --port nnnn or --port=nnnn after heft start --storybook?
Perhaps a way to build storybook like
heft build --storybook
that produces static files instead of starting a server?Actual result:
Could not find any support.
Details
N/A
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@rushstack/heft
version?node -v
)?The text was updated successfully, but these errors were encountered: