-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart-RedEXCompile.cmd
More file actions
34 lines (29 loc) · 883 Bytes
/
Copy pathStart-RedEXCompile.cmd
File metadata and controls
34 lines (29 loc) · 883 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
@echo off
setlocal
cd /d "%~dp0"
where node >nul 2>nul
if errorlevel 1 (
echo Node.js LTS is required. Install it from https://nodejs.org/ and try again.
pause
exit /b 1
)
if exist package-lock.json (
findstr /i /c:"internal.api.openai.org" /c:"applied-caas-gateway" package-lock.json >nul 2>nul
if not errorlevel 1 (
echo Removing a non-public package lock from an earlier development build...
del /f /q package-lock.json
)
)
if not exist node_modules\concurrently\package.json (
echo Installing RedEXCompile dependencies from the public npm registry...
call npm config set registry https://registry.npmjs.org/
call npm install --include=dev --registry=https://registry.npmjs.org/
if errorlevel 1 (
echo Installation failed. Review the error above.
pause
exit /b 1
)
)
if /i "%~1"=="--install-only" exit /b 0
call npm run dev
endlocal