heroweb/svelte/filemanager/install.sh
2024-09-13 16:00:11 +03:00

26 lines
611 B
Bash
Executable File

#!/bin/bash
set -ex
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source ${BASE_DIR}/myenv.sh
# Define the project directory
PROJECT_DIR="myfiles"
pushd ${BASE_DIR}/${PROJECT_DIR}
# if dir doesn't exit yet
# npm create vite@latest $PROJECT_DIR -- --template svelte --yes
# Check if node_modules exists, if not, install the package
if [ ! -d "node_modules" ]; then
npm config set @wx:registry https://npm.svar.dev
npm install
npm install @wx/trial-svelte-filemanager
npm install @wx/trial-svelte-gantt
npm install @wx/trial-svelte-grid
fi
popd &> /dev/null