id = "build-storybook" name = "Storybook build CLI" description = "Builds a static Storybook for deployment." homepage = "https://storybook.js.org" executables = ["build-storybook"] [commands] format = 1 label = "Build Storybook" description = "Build a static Storybook. HTTPS and certificate options are left out." quality = "ai-draft" base = "fig:build-storybook" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/build-storybook.ts" license = "MIT" [[commands.field]] id = "output_dir" label = "Output directory" type = "path" option = ["-o", "--output-dir"] path = { kind = "directory", role = "output", must_exist = false } effect = "overwrite" sources = ["fig"] [[commands.field]] id = "config_dir" label = "Config directory" type = "path" option = ["-c", "--config-dir"] path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.field]] id = "static_dir" label = "Static directories" description = "Comma-separated list of directories to load static files from." type = "string" option = ["-s", "--static-dir"] sources = ["fig"] [[commands.field]] id = "loglevel" label = "Log level" type = "enum" option = ["--loglevel"] choices = [{ value = "silly", label = "Silly" }, { value = "verbose", label = "Verbose" }, { value = "info", label = "Info" }, { value = "warn", label = "Warn" }, { value = "error", label = "Error" }, { value = "silent", label = "Silent" }] sources = ["fig"] [[commands.field]] id = "quiet" label = "Quiet" description = "Suppress verbose build output." type = "boolean" option = ["--quiet"] sources = ["fig"] [[commands.field]] id = "ci" label = "CI mode" description = "Skip interactive prompts." type = "boolean" option = ["--ci"] sources = ["fig"] [[commands.field]] id = "docs" label = "Documentation mode" type = "boolean" option = ["--docs"] sources = ["fig"] [[commands.field]] id = "watch" label = "Watch mode" type = "boolean" option = ["-w", "--watch"] sources = ["fig"] [[commands.field]] id = "stats_json" label = "Write Webpack stats JSON" type = "path" option = ["--webpack-stats-json"] path = { kind = "directory", role = "output", must_exist = false } sources = ["fig"] [[commands.task]] id = "build" label = "Build static Storybook" fields = ["output_dir", "config_dir"] required = [] [[commands.task]] id = "ci-build" label = "Build in CI" fields = ["output_dir", "quiet", "ci"] required = [] set = { ci = [true], quiet = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["output_dir", "config_dir", "static_dir", "quiet", "ci"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["loglevel", "docs", "watch", "stats_json"]