@echo off
echo ====================================
echo Urban Lifeline Web - 安装依赖脚本
echo ====================================
echo.

echo [1/5] 安装根项目依赖...
call npm install
if errorlevel 1 (
    echo 根项目依赖安装失败！
    pause
    exit /b 1
)
echo.

echo [2/5] 安装 shared 模块依赖...
cd packages\shared
call npm install
if errorlevel 1 (
    echo Shared 模块依赖安装失败！
    pause
    exit /b 1
)
cd ..\..
echo.

echo [3/5] 安装 platform 应用依赖...
cd packages\platform
call npm install
if errorlevel 1 (
    echo Platform 应用依赖安装失败！
    pause
    exit /b 1
)
cd ..\..
echo.

echo [4/5] 安装 bidding 应用依赖...
cd packages\bidding
call npm install
if errorlevel 1 (
    echo Bidding 应用依赖安装失败！
    pause
    exit /b 1
)
cd ..\..
echo.

echo [5/5] 安装 workcase 应用依赖...
cd packages\workcase
call npm install
if errorlevel 1 (
    echo Workcase 应用依赖安装失败！
    pause
    exit /b 1
)
cd ..\..
echo.

echo ====================================
echo ✓ 所有依赖安装完成！
echo ====================================
echo.
echo 下一步：
echo   启动所有服务: npm run dev:all
echo   或单独启动:
echo     - Shared:   npm run dev:shared
echo     - Platform: npm run dev:platform
echo     - Bidding:  npm run dev:bidding
echo     - Workcase: npm run dev:workcase
echo.
pause
