update scripts to auto check for pnpm and npm

This commit is contained in:
SethBurkart123
2023-12-03 12:23:47 +11:00
parent 8c2a87c93e
commit 3cc3acfd91
6 changed files with 72 additions and 20 deletions
Regular → Executable
+16 -2
View File
@@ -1,10 +1,24 @@
@echo off
REM Running install script
call install.bat
REM Building projects
cd ..
cd interface
REM Try to get the version of pnpm
pnpm --version > NUL 2>&1
REM Check the exit status of the previous command
IF %ERRORLEVEL% EQU 0 (
REM Running pnpm run build in both directories
cd ./interface
pnpm run build
cd ..
pnpm run build
) ELSE (
REM Running npm run build in both directories
cd ./interface
npm run build
cd ..
npm run build
)
Regular → Executable
+13 -1
View File
@@ -5,8 +5,20 @@
cd ..
# Building projects
# Try to get the version of pnpm
pnpm --version > /dev/null 2>&1
# Check the exit status of the previous command
if [ $? -eq 0 ]; then
# Running npm run dev in both directories
cd ./interface
pnpm run build
cd ..
pnpm run build
else
# Running npm run dev in both directories
cd ./interface
npm run build
cd ..
npm run build
fi
Regular → Executable
+16 -2
View File
@@ -1,7 +1,21 @@
@echo off
REM Running npm run dev in both directories
cd ..
REM Try to get the version of pnpm
pnpm --version >nul 2>&1
REM Check the exit status of the previous command
if %ERRORLEVEL% == 0 (
REM Running pnpm run dev in both directories
cd interface
START cmd /k "npm run dev"
start /b pnpm run dev
cd ..
pnpm run dev
) else (
REM Running npm run dev in both directories
cd interface
start /b npm run dev
cd ..
npm run dev
)
Regular → Executable
+12
View File
@@ -2,8 +2,20 @@
cd ..
# Try to get the version of pnpm
pnpm --version > /dev/null 2>&1
# Check the exit status of the previous command
if [ $? -eq 0 ]; then
# Running npm run dev in both directories
cd ./interface
pnpm run dev &
cd ..
pnpm run dev
else
# Running npm run dev in both directories
cd ./interface
npm run dev &
cd ..
npm run dev
fi
Regular → Executable
View File
Regular → Executable
View File