heroweb/svelte/install.sh

20 lines
523 B
Bash
Raw Normal View History

2024-09-02 08:00:49 +00:00
#!/bin/bash
# Define the project directory
PROJECT_DIR="myfiles"
# Check if the directory exists
if [ ! -d "$PROJECT_DIR" ]; then
# Create the Svelte project
pushd $PROJECT_DIR
npm create vite@latest $PROJECT_DIR -- --template svelte --yes
npm install
npm config set @wx:registry https://npm.svar.dev
npm install @wx/trial-svelte-filemanager
npm install @wx/trial-svelte-gantt
npm install @wx/trial-svelte-grid
#npm run dev
popd
else
echo "$PROJECT_DIR already exists."
fi