diff --git a/develop.sh b/develop.sh index 4709a0f..6d15cb9 100755 --- a/develop.sh +++ b/develop.sh @@ -47,11 +47,15 @@ cat < ./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 \ No newline at end of file diff --git a/package.json b/package.json index 159dc16..727c3f6 100644 --- a/package.json +++ b/package.json @@ -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" },