From 66197aa22c670c789f01caf11db48840659d68b3 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Fri, 26 Jan 2024 14:29:43 +1100 Subject: [PATCH] removed scripts as they are useless now --- scripts/build.bat | 24 -------------------- scripts/build.sh | 24 -------------------- scripts/dev.bat | 21 ------------------ scripts/dev.sh | 21 ------------------ scripts/install.bat | 35 ------------------------------ scripts/install.sh | 53 --------------------------------------------- 6 files changed, 178 deletions(-) delete mode 100755 scripts/build.bat delete mode 100755 scripts/build.sh delete mode 100755 scripts/dev.bat delete mode 100755 scripts/dev.sh delete mode 100755 scripts/install.bat delete mode 100755 scripts/install.sh diff --git a/scripts/build.bat b/scripts/build.bat deleted file mode 100755 index 1276a916..00000000 --- a/scripts/build.bat +++ /dev/null @@ -1,24 +0,0 @@ -@echo off - -REM Running install script -call install.bat - -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% 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 -) diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100755 index 470a7e9a..00000000 --- a/scripts/build.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -# Running install script -./install.sh - -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 build - cd .. - pnpm run build -else - # Running npm run dev in both directories - cd ./interface - npm run build - cd .. - npm run build -fi \ No newline at end of file diff --git a/scripts/dev.bat b/scripts/dev.bat deleted file mode 100755 index 7964eacc..00000000 --- a/scripts/dev.bat +++ /dev/null @@ -1,21 +0,0 @@ -@echo off - -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 /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 -) diff --git a/scripts/dev.sh b/scripts/dev.sh deleted file mode 100755 index 5307018a..00000000 --- a/scripts/dev.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -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 \ No newline at end of file diff --git a/scripts/install.bat b/scripts/install.bat deleted file mode 100755 index 13701dd5..00000000 --- a/scripts/install.bat +++ /dev/null @@ -1,35 +0,0 @@ -@echo off -setlocal - -:: Function to check if a program exists -CALL :check_program_existence npm HAS_NPM -CALL :check_program_existence pnpm HAS_PNPM - -:: Checking and installing Node.js and npm if not present -IF "%HAS_NPM%"=="false" ( - ECHO npm is not detected. Please install Node.js from https://nodejs.org/ and rerun this script. - EXIT /B 1 -) - -:: Checking and installing pnpm if not present -IF "%HAS_PNPM%"=="false" ( - ECHO pnpm is not detected. Installing pnpm... - npm install -g pnpm -) - -:: Installing dependencies using pnpm -CD .. -pnpm install -CD interface -pnpm install -CD .. - -ECHO Success! All dependencies installed. -GOTO :EOF - -:: Function to check if a program exists -:check_program_existence -SET "program=%~1" -FOR /F "tokens=*" %%i IN ('where %program% 2^>NUL') DO (SET "%~2=true" & GOTO :EOF) -SET "%~2=false" -GOTO :EOF diff --git a/scripts/install.sh b/scripts/install.sh deleted file mode 100755 index bf06248b..00000000 --- a/scripts/install.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -# Function to install pnpm -install_pnpm() { - if ! command -v pnpm >/dev/null 2>&1; then - npm install -g pnpm - fi - pnpm_install -} - -# Function to install Node.js and npm -install_npm() { - # Install NVM (Node Version Manager) and Node.js - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - nvm install node -} - -# Function to install packages using pnpm -pnpm_install() { - pnpm install - cd ./interface - pnpm install - cd .. -} - -# Function to install packages using npm -npm_install() { - npm install - cd ./interface - npm install - cd .. -} - -cd .. - -# Check for npm installation -if ! command -v npm >/dev/null 2>&1; then - echo "npm is not installed. Installing npm and Node.js..." - install_npm -fi - -# Ask user for package manager preference -echo "npm is installed." -read -p "Do you wish to use pnpm? (y/n) " yn -case $yn in - [Yy]* ) install_pnpm;; - [Nn]* ) npm_install;; - * ) echo "Please answer yes or no."; exit 1;; -esac - -echo "Success! All dependencies installed."