id = "vite" name = "Vite" homepage = "https://vite.dev" description = "Native ESM-powered web dev build tool." executables = ["vite"] [commands] format = 1 label = "Vite" description = "Build or preview a Vite project. The dev server (bare vite) and dependency optimizer are left out." quality = "ai-draft" base = "fig:vite" 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/vite.ts" license = "MIT" [[commands.subcommand]] path = ["build"] label = "Build for production" description = "Bundle the project for production." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/vite.ts" license = "MIT" [[commands.subcommand.field]] id = "root" label = "Project root" type = "path" position = 0 path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "out_dir" label = "Output directory" type = "path" option = ["--outDir"] path = { kind = "directory", role = "output", must_exist = false } sources = ["fig"] [[commands.subcommand.field]] id = "sourcemap" label = "Sourcemaps" type = "boolean" option = ["--sourcemap"] sources = ["fig"] [[commands.subcommand.field]] id = "watch" label = "Rebuild on change" type = "boolean" option = ["--watch", "-w"] sources = ["fig"] [[commands.subcommand.field]] id = "empty_out_dir" label = "Force empty output directory" type = "boolean" option = ["--emptyOutDir"] effect = "delete" sources = ["fig"] [[commands.subcommand.task]] id = "build" label = "Build" fields = ["root", "out_dir", "sourcemap"] required = [] [[commands.subcommand.task]] id = "watch" label = "Build in watch mode" set = { watch = [true] } lock = ["watch"] fields = ["root", "out_dir", "watch"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["root", "out_dir", "sourcemap", "watch"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["empty_out_dir"] [[commands.subcommand]] path = ["preview"] label = "Preview production build" description = "Serve the built output locally." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/vite.ts" license = "MIT" [[commands.subcommand.field]] id = "root" label = "Project root" type = "path" position = 0 path = { kind = "directory", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "port" label = "Port" type = "integer" option = ["--port"] sources = ["fig"] [[commands.subcommand.field]] id = "strict_port" label = "Exit if port is in use" type = "boolean" option = ["--strictPort"] sources = ["fig"] [[commands.subcommand.task]] id = "preview" label = "Preview" fields = ["root", "port", "strict_port"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["root", "port", "strict_port"]