new script for building
This commit is contained in:
parent
8fb1b20ec9
commit
9ebbf6aace
3 changed files with 149 additions and 1 deletions
40
scripts/build-all.bat
Normal file
40
scripts/build-all.bat
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
@echo off
|
||||
REM Build All Script for Stock Bot (Batch version)
|
||||
REM Builds libraries first, then apps with Turbo, then dashboard with Angular CLI
|
||||
|
||||
echo 🚀 Starting complete build process...
|
||||
|
||||
REM Store original directory
|
||||
set "ORIGINAL_DIR=%CD%"
|
||||
cd /d "g:\repos\stock-bot"
|
||||
|
||||
REM Step 1: Build libraries first
|
||||
echo 📚 Building libraries...
|
||||
call powershell ./scripts/build-libs.ps1
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo ❌ Library build failed
|
||||
cd /d "%ORIGINAL_DIR%"
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Step 2: Build apps with Turbo (excluding dashboard)
|
||||
echo 🏗️ Building applications with Turbo...
|
||||
call turbo run build --filter="./apps/data-service" --filter="./apps/execution-service" --filter="./apps/portfolio-service" --filter="./apps/processing-service" --filter="./apps/strategy-service"
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo ❌ Turbo app build failed
|
||||
cd /d "%ORIGINAL_DIR%"
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Step 3: Build dashboard with Angular CLI
|
||||
echo 🎨 Building Angular dashboard...
|
||||
cd apps\dashboard
|
||||
call ng build --configuration production
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo ❌ Dashboard build failed
|
||||
cd /d "%ORIGINAL_DIR%"
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
cd /d "%ORIGINAL_DIR%"
|
||||
echo 🎉 Complete build finished successfully!
|
||||
Loading…
Add table
Add a link
Reference in a new issue