id = "browser-sync" name = "Browsersync" description = "Keep multiple browsers and devices in sync when building websites." homepage = "https://browsersync.io" executables = ["browser-sync"] [commands] format = 1 label = "Start Browsersync" description = "Serve a directory or proxy a server and reload browsers on file changes. Only common options are offered." quality = "ai-draft" base = "fig:browser-sync" 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/browser-sync.ts" license = "MIT" [[commands.subcommand]] path = ["start"] label = "Start Browsersync" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/browser-sync.ts" license = "MIT" [[commands.subcommand.field]] id = "server" label = "Serve current directory" type = "boolean" option = ["--server", "-s"] sources = ["fig"] [[commands.subcommand.field]] id = "proxy" label = "Proxy an existing server" description = "Give the host of the server to proxy, e.g. localhost:8080." type = "string" option = ["--proxy", "-p"] sources = ["fig"] [[commands.subcommand.field]] id = "files" label = "Files to watch" description = "Paths or glob patterns to watch for changes." type = "string" option = ["--files", "-f"] multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "port" label = "Port" type = "integer" option = ["--port"] sources = ["fig"] [[commands.subcommand.field]] id = "index" label = "Index file" type = "string" option = ["--index"] sources = ["fig"] [[commands.subcommand.field]] id = "directory" label = "Directory listing" type = "boolean" option = ["--directory"] sources = ["fig"] [[commands.subcommand.field]] id = "single" label = "Single-page app fallback" type = "boolean" option = ["--single"] sources = ["fig"] [[commands.subcommand.field]] id = "https" label = "HTTPS" type = "boolean" option = ["--https"] sources = ["fig"] [[commands.subcommand.field]] id = "tunnel" label = "Public tunnel URL" type = "boolean" option = ["--tunnel"] sources = ["fig"] [[commands.subcommand.field]] id = "open" label = "Open in browser" description = "Which URL to open automatically." type = "enum" option = ["--open"] choices = [{ value = "local", label = "Local" }, { value = "external", label = "External" }, { value = "tunnel", label = "Tunnel" }] sources = ["fig"] [[commands.subcommand.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.task]] id = "static" label = "Serve a static site" fields = ["server", "files", "port"] required = ["server"] set = { server = [true] } [[commands.subcommand.task]] id = "proxy" label = "Proxy a dev server" fields = ["proxy", "files", "port"] required = ["proxy"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["server", "proxy", "files", "port"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["index", "directory", "single", "https", "tunnel", "open", "config"]