Files
Document_translator_V2_nodo…/install_frontend_dependencies.bat
beabigegg 4cace93934 NO docker
2025-10-02 18:50:53 +08:00

41 lines
929 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
REM ============================================
REM PANJIT Document Translator V2
REM 前端依賴安裝腳本 (Windows)
REM ============================================
echo ========================================
echo PANJIT Document Translator V2
echo 前端依賴安裝程式
echo ========================================
echo.
REM 檢查 Node.js 是否存在
node --version >nul 2>&1
if %errorlevel% neq 0 (
echo [錯誤] 找不到 Node.js請先安裝 Node.js 16 或以上版本
pause
exit /b 1
)
echo [1/3] 檢查 Node.js 版本...
node --version
npm --version
echo.
echo [2/3] 進入前端目錄並安裝依賴...
cd frontend
call npm install
echo.
echo [3/3] 建置前端生產版本...
call npm run build
echo.
echo ========================================
echo 前端依賴安裝完成!
echo 建置產物位於: frontend/dist
echo ========================================
cd ..
pause