id = "babel" name = "Babel" description = "The JavaScript compiler, with a CLI for compiling files and directories." homepage = "https://babel.dev" executables = ["babel"] [commands] format = 1 label = "Compile with Babel" description = "Compile files or a directory to a file or directory. Code-frame, comment and auxiliary-comment options are left out." quality = "ai-draft" base = "fig:babel" 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/babel.ts" license = "MIT" [[commands.field]] id = "input" label = "Input files or directory" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "out_dir" label = "Output directory" type = "path" option = ["-d", "--out-dir"] path = { kind = "directory", role = "output" } effect = "overwrite" sources = ["fig"] [[commands.field]] id = "out_file" label = "Output file" type = "path" option = ["-o", "--out-file"] path = { kind = "file", role = "output" } effect = "overwrite" sources = ["fig"] [[commands.field]] id = "presets" label = "Presets (comma-separated)" type = "string" option = ["--presets"] sources = ["fig"] [[commands.field]] id = "plugins" label = "Plugins (comma-separated)" type = "string" option = ["--plugins"] sources = ["fig"] [[commands.field]] id = "config_file" label = "Config file" type = "path" option = ["--config-file"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "source_maps" label = "Source maps" type = "enum" option = ["-s", "--source-maps"] choices = [{ value = "true", label = "true" }, { value = "false", label = "false" }, { value = "inline", label = "inline" }, { value = "both", label = "both" }] sources = ["fig"] [[commands.field]] id = "extensions" label = "Extensions (comma-separated)" type = "string" option = ["-x", "--extensions"] sources = ["fig"] [[commands.field]] id = "ignore" label = "Ignore globs" type = "string" option = ["--ignore"] sources = ["fig"] [[commands.field]] id = "copy_files" label = "Copy non-compilable files" type = "boolean" option = ["-D", "--copy-files"] sources = ["fig"] [[commands.field]] id = "watch" label = "Watch for changes" type = "boolean" option = ["-w", "--watch"] sources = ["fig"] [[commands.field]] id = "minified" label = "Minify output" type = "boolean" option = ["--minified"] sources = ["fig"] [[commands.task]] id = "dir" label = "Compile a directory" fields = ["input", "out_dir", "copy_files"] required = ["input", "out_dir"] [[commands.task]] id = "file" label = "Compile into one file" fields = ["input", "out_file"] required = ["input", "out_file"] [[commands.group]] id = "basic" label = "Basic" fields = ["input", "out_dir", "out_file", "presets", "plugins"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["config_file", "source_maps", "extensions", "ignore", "copy_files", "watch", "minified"]