sb extract alternative to puppeteer
See original GitHub issueI build and “extract” several static storybooks for composition within a docker-based CI/CD environment similar to Drone. The sb extract
command leverages puppeteer to extract metadata. Puppeteer’s headless browser is notoriously difficult to configure and use within docker and other virtual linux environments, and is currently blocking us from implementing fully automated storybook builds.
Is there an alternative for the json metadata fetch that sb extract
executes that doesn’t require launching a browser? Could a simple GET request be used in puppeteer’s place?
Alternatively, a working docker image to use for the cli step would be incredibly helpful.
I can potentially contribute time for a fix if help with on-boarding and familiarization with the ecosystem is possible.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:15 (7 by maintainers)
@adrianiy, do you want to save it into the storybook-static dir? I’m going to make the extract step a part of the build process. So you be able to do ‘storybook-build’ and get stories.json automatically in the same directory with storybook static. Is it ok for you?
@shilman @rmknecht. I released a new version of Creevey 0.7.26 with the command ‘creevey --extract’. It generates ‘stories.json’ file, and it’s 10x faster than ‘build-storybook && sb extract’.