24 lines
460 B
Bash
24 lines
460 B
Bash
|
#!/bin/bash
|
||
|
set -ex
|
||
|
|
||
|
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||
|
|
||
|
cd ${BASE_DIR}
|
||
|
|
||
|
# 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
|
||
|
npx svelte-add@latest tailwindcss -y
|
||
|
n
|
||
|
fi
|
||
|
|
||
|
popd &> /dev/null
|