storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.53k stars 9.3k forks source link

[Feature Request]: Integrate Storybook with Bazel.build #22338

Open ethriel3695 opened 1 year ago

ethriel3695 commented 1 year ago

Is your feature request related to a problem? Please describe

We have a few of our systems using Bazel, but there is no integration with Storybook.

It would be great to find a way to generate a Bazel binary storybook.bzl to consume with Bazel modules or add Storybook to the Bazel registry.

Describe the solution you'd like

We want to build Storybook with Bazel and kick off the job. Ideally, we'd only run the Storybook and Chromatic jobs if everything stays the same, and Bazel can provide that for free.

This process can assist in reducing costs and our build times in CI.

Describe alternatives you've considered

We have some hacks right now to limit runs, but I'd rather build and test with Bazel as much as possible to help reduce latency.

Are you able to assist to bring the feature to reality?

yes, I can

Additional context

Here are some additional resources related to Bazel

https://registry.bazel.build/

https://github.com/bazelbuild/bazel-central-registry#roles

https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/bcr-policies.md

https://bazel.build/external/module

shilman commented 1 year ago

Thanks @ethriel3695 -- I'll leave this around to see what the community's appetite for this feature looks like. 🙏

aaomidi commented 1 month ago

What are the workarounds you're using currently?