-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
54 lines (48 loc) · 1.12 KB
/
build.bat
File metadata and controls
54 lines (48 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
chcp 65001 >nul
title Building Car Wash App for Production
color 0B
cls
echo.
echo ========================================
echo Building App for Production
echo ========================================
echo.
REM Check if node is installed
where node >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Node.js is not installed!
echo Please install Node.js first.
pause
exit /b 1
)
echo [1/3] Installing dependencies...
call npm install
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Failed to install dependencies
pause
exit /b 1
)
echo.
echo [2/3] Building production version...
call npm run build
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Build failed
pause
exit /b 1
)
echo.
echo [3/3] Build complete!
echo.
echo ========================================
echo BUILD SUCCESSFUL!
echo ========================================
echo.
echo Your app is ready in the 'dist' folder.
echo.
echo Next steps:
echo 1. See DEPLOY.txt for deployment instructions
echo 2. Upload the 'dist' folder contents to your hosting
echo.
echo Press any key to exit...
pause >nul