{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/babel.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "input",
        "label": "Input files or directory",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "out_dir",
        "label": "Output directory",
        "type": "path",
        "option": [
          "-d",
          "--out-dir"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "out_file",
        "label": "Output file",
        "type": "path",
        "option": [
          "-o",
          "--out-file"
        ],
        "path": {
          "kind": "file",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "presets",
        "label": "Presets (comma-separated)",
        "type": "string",
        "option": [
          "--presets"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "plugins",
        "label": "Plugins (comma-separated)",
        "type": "string",
        "option": [
          "--plugins"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config_file",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config-file"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "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"
        ]
      },
      {
        "id": "extensions",
        "label": "Extensions (comma-separated)",
        "type": "string",
        "option": [
          "-x",
          "--extensions"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore",
        "label": "Ignore globs",
        "type": "string",
        "option": [
          "--ignore"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "copy_files",
        "label": "Copy non-compilable files",
        "type": "boolean",
        "option": [
          "-D",
          "--copy-files"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "watch",
        "label": "Watch for changes",
        "type": "boolean",
        "option": [
          "-w",
          "--watch"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "minified",
        "label": "Minify output",
        "type": "boolean",
        "option": [
          "--minified"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "dir",
        "label": "Compile a directory",
        "fields": [
          "input",
          "out_dir",
          "copy_files"
        ],
        "required": [
          "input",
          "out_dir"
        ]
      },
      {
        "id": "file",
        "label": "Compile into one file",
        "fields": [
          "input",
          "out_file"
        ],
        "required": [
          "input",
          "out_file"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "input",
          "out_dir",
          "out_file",
          "presets",
          "plugins"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config_file",
          "source_maps",
          "extensions",
          "ignore",
          "copy_files",
          "watch",
          "minified"
        ]
      }
    ]
  }
}
