#!/usr/bin/env bash
# 组合包安装脚本（Trove 自动生成，勿手改；组合包文档为准）
# combo: combo-web-deploy-verify ｜ 网页部署验证 ｜ 状态: verified
# 生成: 2026-09-24 ｜ 详情: https://trove.xin/combos/combo-web-deploy-verify.html ｜ 依赖警告见文档
# 按官方下载源 + 国内镜像适配；每条命令后可验证（预期输出见组合包文档）。
set -euo pipefail

# ==== [1/2] vite-deploy：前端构建 ====
# 版本要求: 5.0~5.4（2026-08-29 收录实测 5.4.21）
npm install --save-dev vite --registry=https://registry.npmmirror.com
npx vite build

# ==== [2/2] playwright-mcp：浏览器验证 ====
# 版本要求: >= 0.0.79（2026-08-29 实测；Node >= 18）
npm_config_registry=https://registry.npmmirror.com npm install -g @playwright/mcp
npx --no-install playwright install chromium

