id = "stencil" name = "Stencil" description = "CLI to build Stencil projects and generate components." homepage = "https://stenciljs.com" executables = ["stencil"] [commands] format = 1 label = "Stencil" description = "Build projects and scaffold components." quality = "ai-draft" base = "fig:stencil" 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/stencil.ts" license = "MIT" [[commands.subcommand]] path = ["build"] label = "Build components" description = "Build for development or production." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/stencil.ts" license = "MIT" [[commands.subcommand.field]] id = "prod" label = "Production build" type = "boolean" option = ["--prod"] sources = ["fig"] [[commands.subcommand.field]] id = "dev" label = "Development build" type = "boolean" option = ["--dev"] sources = ["fig"] [[commands.subcommand.field]] id = "watch" label = "Watch for changes" type = "boolean" option = ["--watch"] sources = ["fig"] [[commands.subcommand.field]] id = "serve" label = "Start dev server" type = "boolean" option = ["--serve"] sources = ["fig"] [[commands.subcommand.field]] id = "docs" label = "Generate readme docs" type = "boolean" option = ["--docs-readme"] sources = ["fig"] [[commands.subcommand.field]] id = "ci" label = "CI settings" type = "boolean" option = ["--ci"] sources = ["fig"] [[commands.subcommand.field]] id = "es5" label = "ES5 build" type = "boolean" option = ["--es5"] sources = ["fig"] [[commands.subcommand.field]] id = "no_open" label = "Do not open browser" type = "boolean" option = ["--no-open"] sources = ["fig"] [[commands.subcommand.field]] id = "port" label = "Dev server port" type = "integer" option = ["--port"] sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "no_cache" label = "Disable cache" type = "boolean" option = ["--no-cache"] sources = ["fig"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose"] sources = ["fig"] [[commands.subcommand.task]] id = "prod" label = "Production build" fields = ["prod", "docs", "config"] required = [] set = { prod = [true] } [[commands.subcommand.task]] id = "dev" label = "Dev server" fields = ["dev", "watch", "serve", "port", "no_open"] required = [] set = { dev = [true], watch = [true], serve = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["prod", "dev", "watch", "serve", "docs", "port", "config"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["ci", "es5", "no_open", "no_cache", "verbose"] [[commands.subcommand]] path = ["generate"] label = "Generate component" description = "Bootstrap a new component." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/stencil.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Component name" description = "Must contain a dash, e.g. my-component." type = "string" position = 0 sources = ["fig"] [[commands.subcommand.task]] id = "gen" label = "Generate" fields = ["name"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name"]