{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/vite.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "build"
        ],
        "label": "Build for production",
        "description": "Bundle the project for production.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vite.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "root",
            "label": "Project root",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "out_dir",
            "label": "Output directory",
            "type": "path",
            "option": [
              "--outDir"
            ],
            "path": {
              "kind": "directory",
              "role": "output",
              "must_exist": false
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "sourcemap",
            "label": "Sourcemaps",
            "type": "boolean",
            "option": [
              "--sourcemap"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "watch",
            "label": "Rebuild on change",
            "type": "boolean",
            "option": [
              "--watch",
              "-w"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "empty_out_dir",
            "label": "Force empty output directory",
            "type": "boolean",
            "option": [
              "--emptyOutDir"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build",
            "fields": [
              "root",
              "out_dir",
              "sourcemap"
            ],
            "required": []
          },
          {
            "id": "watch",
            "label": "Build in watch mode",
            "set": {
              "watch": [
                true
              ]
            },
            "lock": [
              "watch"
            ],
            "fields": [
              "root",
              "out_dir",
              "watch"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "root",
              "out_dir",
              "sourcemap",
              "watch"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "empty_out_dir"
            ]
          }
        ]
      },
      {
        "path": [
          "preview"
        ],
        "label": "Preview production build",
        "description": "Serve the built output locally.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vite.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "root",
            "label": "Project root",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "strict_port",
            "label": "Exit if port is in use",
            "type": "boolean",
            "option": [
              "--strictPort"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "preview",
            "label": "Preview",
            "fields": [
              "root",
              "port",
              "strict_port"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "root",
              "port",
              "strict_port"
            ]
          }
        ]
      }
    ]
  }
}
