id = "rollup" name = "Rollup" description = "Module bundler for JavaScript." homepage = "https://rollupjs.org" executables = ["rollup"] [commands] format = 1 label = "Bundle with Rollup" description = "Bundle an entry file or use a config file. Plugins, globals, treeshake and watch tuning options are left out." quality = "ai-draft" base = "fig:rollup" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/rollup.ts" license = "MIT" [[commands.field]] id = "config" label = "Config file" type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input" } sources = ["src"] [[commands.field]] id = "input" label = "Entry file" type = "path" option = ["--input", "-i"] path = { kind = "file", role = "input" } sources = ["src"] [[commands.field]] id = "file" label = "Output file" type = "path" option = ["-o", "--file"] path = { kind = "file", role = "output" } sources = ["src"] [[commands.field]] id = "dir" label = "Output directory" type = "path" option = ["--dir", "-d"] path = { kind = "directory", role = "output" } sources = ["src"] [[commands.field]] id = "format" label = "Output format" type = "enum" option = ["--format", "-f"] choices = [{ value = "amd", label = "amd" }, { value = "cjs", label = "cjs" }, { value = "es", label = "es" }, { value = "iife", label = "iife" }, { value = "umd", label = "umd" }, { value = "system", label = "system" }] sources = ["src"] [[commands.field]] id = "name" label = "Global name (iife/umd)" type = "string" option = ["--name", "-n"] sources = ["src"] [[commands.field]] id = "sourcemap" label = "Sourcemap" type = "boolean" option = ["--sourcemap", "-m"] sources = ["src"] [[commands.field]] id = "external" label = "External ids (comma separated)" type = "string" option = ["--external", "-e"] sources = ["src"] [[commands.field]] id = "watch" label = "Watch and rebuild" type = "boolean" option = ["--watch", "-w"] sources = ["src"] [[commands.field]] id = "compact" label = "Minify wrapper code" type = "boolean" option = ["--compact"] sources = ["src"] [[commands.field]] id = "silent" label = "Silence warnings" type = "boolean" option = ["--silent"] sources = ["src"] [[commands.field]] id = "no_treeshake" label = "Disable tree-shaking" type = "boolean" option = ["--no-treeshake"] sources = ["src"] [[commands.task]] id = "config" label = "Build with config file" fields = ["config", "watch"] required = ["config"] [[commands.task]] id = "bundle" label = "Bundle one entry" fields = ["input", "file", "format", "name", "sourcemap"] required = ["input", "file"] [[commands.task]] id = "watch" label = "Watch with config" fields = ["config", "watch"] required = ["config"] set = { watch = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["config", "input", "file", "format", "name", "sourcemap", "watch"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["compact", "silent", "no_treeshake", "external", "dir"]