Files
prop-ai-hr/scripts/dev-frontend.sh
T
2026-07-03 01:25:10 +08:00

13 lines
280 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR/frontend"
if [[ ! -d node_modules ]]; then
npm install --registry=https://registry.npmmirror.com
fi
exec npm run dev -- --host 127.0.0.1 --port 5173 --strictPort