mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
update scripts to auto check for pnpm and npm
This commit is contained in:
Regular → Executable
+19
-5
@@ -1,10 +1,24 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
REM Running install script
|
REM Running install script
|
||||||
call install.bat
|
call install.bat
|
||||||
|
|
||||||
REM Building projects
|
|
||||||
cd ..
|
cd ..
|
||||||
cd interface
|
|
||||||
npm run build
|
REM Try to get the version of pnpm
|
||||||
cd ..
|
pnpm --version > NUL 2>&1
|
||||||
npm run build
|
|
||||||
|
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
+17
-5
@@ -5,8 +5,20 @@
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Building projects
|
# Try to get the version of pnpm
|
||||||
cd ./interface
|
pnpm --version > /dev/null 2>&1
|
||||||
npm run build
|
|
||||||
cd ..
|
# Check the exit status of the previous command
|
||||||
npm run build
|
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
+19
-5
@@ -1,7 +1,21 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM Running npm run dev in both directories
|
|
||||||
cd ..
|
cd ..
|
||||||
cd interface
|
|
||||||
START cmd /k "npm run dev"
|
REM Try to get the version of pnpm
|
||||||
cd ..
|
pnpm --version >nul 2>&1
|
||||||
npm run dev
|
|
||||||
|
REM Check the exit status of the previous command
|
||||||
|
if %ERRORLEVEL% == 0 (
|
||||||
|
REM Running pnpm run dev in both directories
|
||||||
|
cd interface
|
||||||
|
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
+17
-5
@@ -2,8 +2,20 @@
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Running npm run dev in both directories
|
# Try to get the version of pnpm
|
||||||
cd ./interface
|
pnpm --version > /dev/null 2>&1
|
||||||
npm run dev &
|
|
||||||
cd ..
|
# Check the exit status of the previous command
|
||||||
npm run dev
|
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
Regular → Executable
Reference in New Issue
Block a user