Add project source with .gitignore, remove node_modules and dist from tracking

This commit is contained in:
周徐浩
2026-07-17 03:23:57 +08:00
parent 4f6c48e418
commit 0237da7c66
20 changed files with 3461 additions and 0 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
HOST="${HOST:-0.0.0.0}"
PORT="${PORT:-5173}"
cd "$ROOT_DIR"
if [[ ! -d node_modules ]]; then
npm install
fi
exec npm run dev -- --host "$HOST" --port "$PORT"