-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-simple.bat
More file actions
62 lines (55 loc) · 1.29 KB
/
build-simple.bat
File metadata and controls
62 lines (55 loc) · 1.29 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
55
56
57
58
59
60
61
62
@echo off
echo.
echo ========================================
echo Building App - Creating 'dist' folder
echo ========================================
echo.
echo This will create the 'dist' folder you need.
echo Please wait...
echo.
cd /d "%~dp0"
REM Check if node exists
where node >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Node.js is not installed!
echo.
echo Please install Node.js first.
echo See INSTALL_NODEJS.txt
echo.
pause
exit /b 1
)
echo [Step 1/2] Installing dependencies...
call npm install
if %ERRORLEVEL% NEQ 0 (
echo.
echo ERROR: Failed to install dependencies
echo.
pause
exit /b 1
)
echo.
echo [Step 2/2] Building app (this creates the 'dist' folder)...
call npm run build
if %ERRORLEVEL% NEQ 0 (
echo.
echo ERROR: Build failed
echo.
pause
exit /b 1
)
echo.
echo ========================================
echo SUCCESS! 'dist' folder created!
echo ========================================
echo.
echo The 'dist' folder is now in this directory.
echo.
echo Next step: Deploy it!
echo - Go to: https://app.netlify.com/drop
echo - Drag the 'dist' folder
echo.
echo Press any key to open the folder...
pause >nul
REM Open the folder so they can see it
explorer .