20 lines
523 B
Bash
20 lines
523 B
Bash
|
#!/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
|