#!/usr/bin/env bash
# 构建前端静态产物到 mengpost-frontend/dist
set -e
ROOT="$(cd "$(dirname "$0")" && pwd)"
cd "$ROOT/mengpost-frontend"
[ -d node_modules ] || npm install
npm run build
echo ""
echo "  前端已构建: $ROOT/mengpost-frontend/dist"
