mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 13:02:33 +08:00
11 lines
356 B
Go
11 lines
356 B
Go
package frontend
|
|
|
|
import "dagger.io/dagger"
|
|
|
|
// Storybook returns a dagger.Directory which contains the built storybook server.
|
|
func Storybook(builder *dagger.Container, src *dagger.Directory, version string) *dagger.Directory {
|
|
return builder.
|
|
WithExec([]string{"yarn", "run", "storybook:build"}).
|
|
Directory("./packages/grafana-ui/dist/storybook")
|
|
}
|