-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature request: Storybook 7 support #605
Comments
Thanks for opening this. I haven't done any testing with 7.0 yet but this is one of a few breaking changes that will affect this extension (the other big one being the changes to the hierarchy for docs). For this issue, I think a version check on |
@joshbolduc Storybook maintainer here! I'd be happy to assist in this migration. Would you be open to collaborating with me? Here's also a link to my calendly: Storybook 7.0 is going to be in beta soon, and in fact I'd love to use this VScode addon myself on the storybook monorepo itself, yes we use storybook to build out storybook's UI. 😃 |
@ndelangen That would be great--thanks for the offer. Unfortunately the main bottleneck so far has just been my own free time, and it may still be a little while before I can find some dedicated time to dig into this as I'd like to. I did start looking at doing version detection, which I'll need for at least some of these changes as they otherwise won't be compatible with projects that are on 6.x. After that I think the changes that affect this extension are:
If I were better organized these things would already have their own issues, and perhaps even a board to make them easier to track! (To say nothing of the other smaller, unrelated enhancements I have in mind. 🙂) But hopefully in the next few weeks I'll be able to come back to this in earnest. Ultimately my goal is to get a 7.0-compatible release available by the time SB 7.0 reaches GA, if not sooner. I definitely won't hesitate to reach out--thanks again for the offer! |
Add support for new launch strategies for launching a Storybook developer server. This allows the server to be launched via direct invocation (`storybook` for Storybook 7 or `start-storybook` for Storybook 6), npm script, VS Code task, or custom script. The existing settings for configuring the `start-storybook` binary path and arguments are deprecated in favor of new options. Fixes #571 Fixes #605
Add support for new launch strategies for launching a Storybook developer server. This allows the server to be launched via direct invocation (`storybook` for Storybook 7 or `start-storybook` for Storybook 6), npm script, VS Code task, or custom script. The existing settings for configuring the `start-storybook` binary path and arguments are deprecated in favor of new options. Fixes #571 Fixes #605
With #803, I've added new launch strategies to support launching Storybook 7 servers (including directly launching One caveat: due to storybookjs/storybook#21055, when you try launching with the current beta, it'll open a browser window (and, depending on how you launch it, run into a port conflict that prompts for user input). I have a PR to fix that, but in the meantime you can add this to your workspace settings: "storyExplorer.server.internal.storybook.args": ["--ci"] Like I mentioned before, there are other changes in 7.0 that are still not fully supported. I've created a project to aggregate the work needed to complete that work for anyone who'd like to follow along. |
In Storybook 7
start-storybook
becomesstorybook dev
(or shorthandsb dev
).Current workaround:
This extension should probably support both out of the box?
The text was updated successfully, but these errors were encountered: