-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.cmd
More file actions
44 lines (38 loc) · 832 Bytes
/
Copy pathsetup.cmd
File metadata and controls
44 lines (38 loc) · 832 Bytes
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
@echo off
echo.
echo Shipyard - Setup
echo ----------------
echo.
where node >nul 2>&1
if %errorlevel% neq 0 (
echo [!] Node.js is required. Install from https://nodejs.org
pause
exit /b 1
)
echo [ok] Node.js found
where pnpm >nul 2>&1
if %errorlevel% neq 0 (
echo [..] Installing pnpm...
npm install -g pnpm
)
echo [ok] pnpm found
where git >nul 2>&1
if %errorlevel% neq 0 (
echo [!] git is required. Install from https://git-scm.com
pause
exit /b 1
)
echo [ok] git found
echo.
echo [..] Installing dependencies...
cd /d "%~dp0"
pnpm install
if not exist "data\tasks" mkdir data\tasks
echo.
echo [ok] Setup complete!
echo.
echo Run Shipyard:
echo pnpm dev Start dev server (http://localhost:5421)
echo shipyard.cmd Start + open browser
echo.
pause