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
Run cli from node JS #26
Comments
So I propose to extract the runner from the addon to be able to use it in the node js script. e.g. new screenshotInstance = new ScreenshotStorybook(channel)
screenshotInstance.capture({ /**..some capture options **/ })
screenshotInstance.capture({ /**..another capture options **/ }) |
Hi @alexeybondarenko I appreciate the attractive proposal! I think that I will also consider the API with reference to what you suggested 😃 |
@tsuyoshiwada I think I can make the PR with these changes If you agree in general with this feature 😄 |
@alexeybondarenko Thanks 👍 !! The other day, I changed the code base greatly. |
@tsuyoshiwada I have troubles with that. Probably, you can help me to create the example? |
of course 💪 !! |
@tsuyoshiwada I'm working on the project, that has several themes and I have to capture some of these themes. I've written the addon that adds
variants
to the Storybook Pannel and they can be configurable in storybook config.Now, I'm looking for the way to run capture phase multiple times, with changes in the storybook instance. Looks like this can be done if I would be able to run addon cli from NODE JS script, that will allow me to run capturing manually.
What do you think about this?
The text was updated successfully, but these errors were encountered: