From b8ef8bc220f6d2c757c06ca24f81c8b13ced956b Mon Sep 17 00:00:00 2001 From: cailean Date: Tue, 15 Apr 2025 16:14:06 +0100 Subject: [PATCH] updated routine for relative paths --- client/package-lock.json | 6 ++++++ utilities/routine.bat | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 client/package-lock.json diff --git a/client/package-lock.json b/client/package-lock.json new file mode 100644 index 0000000..ac6f59a --- /dev/null +++ b/client/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "client", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/utilities/routine.bat b/utilities/routine.bat index 7462729..99b6a7b 100644 --- a/utilities/routine.bat +++ b/utilities/routine.bat @@ -1,9 +1,13 @@ @echo off -cd /d "C:\Users\info\noura\website\transmediale-noura-tafeche\client" + +REM Set the base path to the directory of this batch file +set BASEDIR=%~dp0 + +cd /d "%BASEDIR%\..\client" start cmd /k live-server -cd /d "C:\Users\info\noura\website\transmediale-noura-tafeche\server" +cd /d "%BASEDIR%\..\server" start cmd /k npm run dev -cd /d "C:\Users\info\noura\utilities" -start cmd "hide-taskbar.exe" \ No newline at end of file +cd /d "%BASEDIR%" +start hide-taskbar.exe \ No newline at end of file