-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
47 lines (42 loc) · 1.05 KB
/
Copy pathstart.bat
File metadata and controls
47 lines (42 loc) · 1.05 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
@echo off
setlocal
title Publish to GitHub — Editor
echo.
echo ============================================
echo Opening the editor...
echo ============================================
echo.
echo Keep this window open while you write.
echo Closing it stops the local editor.
echo Your browser should open automatically.
echo If it does not, look below for a line starting with http://localhost
echo (the number after localhost may vary if 5173 is already in use).
echo.
where node >nul 2>nul
if errorlevel 1 (
echo [Problem] Node.js was not found.
echo Install Node from https://nodejs.org/ then run install.bat.
echo.
pause
exit /b 1
)
if not exist "node_modules\" (
echo [Problem] This folder is missing the "node_modules" directory.
echo Double-click install.bat first and wait until it finishes.
echo.
pause
exit /b 1
)
echo Starting the local server...
echo.
call npm run dev
if errorlevel 1 (
echo.
echo [Problem] The server stopped with an error. See messages above.
echo.
pause
exit /b 1
)
echo.
pause
endlocal