first commit
This commit is contained in:
14
Svelte/script/svelte-init
Executable file
14
Svelte/script/svelte-init
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user