Files
Umbrella/Svelte/script/svelte-init
2025-06-27 21:43:54 +02:00

14 lines
268 B
Bash
Executable File

#!/bin/bash
if [ ! -f "/home/svelte/frontend/vite.config.js" ]; then
npm create -y vite@6 frontend -- --template svelte
cd frontend
npm install
else
echo Svelte-Project recognized, starting…
cd frontend
fi
npm run dev -- --host 0.0.0.0
npm run build
bash