javacodeadmin/build_verification.bat

41 lines
776 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
echo 开始验证项目编译...
echo.
echo [1/4] 编译后端项目...
cd /d "%~dp0"
call mvn clean compile -DskipTests=true
if %errorlevel% neq 0 (
echo 后端编译失败!
pause
exit /b 1
)
echo.
echo [2/4] 安装前端依赖...
cd ruoyi-ui
call npm install
if %errorlevel% neq 0 (
echo 前端依赖安装失败!
pause
exit /b 1
)
echo.
echo [3/4] 编译前端项目...
call npm run build:prod
if %errorlevel% neq 0 (
echo 前端编译失败!
pause
exit /b 1
)
echo.
echo [4/4] 验证完成!
echo 所有修改已通过编译验证。
echo.
echo 下一步可以启动服务进行功能测试:
echo 1. 启动后端mvn spring-boot:run -pl ruoyi-admin
echo 2. 启动前端cd ruoyi-ui && npm run dev
echo.
pause