Initial commit
This commit is contained in:
27
dev.bat
Normal file
27
dev.bat
Normal file
@@ -0,0 +1,27 @@
|
||||
@echo off
|
||||
setlocal
|
||||
echo =========================================
|
||||
echo Starting DEVELOPMENT WATCH mode...
|
||||
echo =========================================
|
||||
echo Press Ctrl+C to stop.
|
||||
echo.
|
||||
:: Start Tailwind in watch mode in the background
|
||||
echo [DEV] Starting Tailwind CSS watcher...
|
||||
start "Tailwind Watcher" .\tailwindcss.exe -i .\frontend\input.css -o .\web\static\css\output.css --watch
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo [AIR] ^> !!! Tailwind CSS compilation FAILED. Halting build.
|
||||
popd
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: Start esbuild in watch mode in the foreground
|
||||
::.\esbuild.exe .\frontend\js\main.js --bundle --outfile=.\web\static\js\app.js --watch
|
||||
echo [DEV] Starting JavaScript watcher with Code Splitting...
|
||||
.\esbuild.exe .\frontend\js\main.js ^
|
||||
--bundle ^
|
||||
--outdir=.\web\static\js ^
|
||||
--splitting ^
|
||||
--format=esm ^
|
||||
--watch
|
||||
endlocal
|
||||
Reference in New Issue
Block a user