NO docker
This commit is contained in:
40
install_frontend_dependencies.bat
Normal file
40
install_frontend_dependencies.bat
Normal file
@@ -0,0 +1,40 @@
|
||||
@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
|
Reference in New Issue
Block a user