Skip to content

Commit

Permalink
Improve develop.sh script to also build and watch frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulade committed Aug 26, 2023
1 parent dfe419e commit d641dc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,15 @@ cat <<EOF > ./database.json
}
EOF

echo "=> Build frontend"
npm run build
echo "=> Build and watch frontend in the background"
npm run watch &

echo "=> Run database migrations"
./node_modules/.bin/db-migrate up

echo "============================"
echo " Open http://localhost:3000 "
echo "============================"

echo "=> Start releasebell"
./index.js
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"watch": "vite build --watch",
"preview": "vite preview",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit d641dc5

Please sign in to comment.