mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-08 10:25:28 +08:00
feat: Establish WebUI build process, update frontend assets, and add CI workflow.
This commit is contained in:
22
scripts/build-webui.sh
Executable file
22
scripts/build-webui.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# WebUI 构建脚本
|
||||
# 用法: ./scripts/build-webui.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "🔨 Building WebUI..."
|
||||
|
||||
cd "$(dirname "$0")/../webui"
|
||||
|
||||
# 检查 node_modules
|
||||
if [ ! -d "node_modules" ]; then
|
||||
echo "📦 Installing dependencies..."
|
||||
npm install
|
||||
fi
|
||||
|
||||
# 构建
|
||||
echo "🏗️ Running build..."
|
||||
npm run build
|
||||
|
||||
echo "✅ WebUI built successfully!"
|
||||
echo "📁 Output: static/admin/"
|
||||
Reference in New Issue
Block a user