feat: add dev scripts for presi and storage apps

Add root-level npm scripts for presi and storage:
- dev:presi:full, dev:storage:full (with auto DB setup)
- Individual scripts for web, backend, mobile, landing
- Database scripts (db:push, db:studio, db:seed)

Also update setup-databases.sh to support presi and storage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-01-25 13:27:55 +01:00
parent 36a9e3a37c
commit 0a4e7e0f73
2 changed files with 29 additions and 2 deletions

View file

@ -64,6 +64,7 @@ ALL_DATABASES=(
"todo"
"manadeck"
"storage"
"presi"
"mail"
"moodlit"
"finance"
@ -146,9 +147,17 @@ setup_service() {
create_db_if_not_exists "nutriphi"
push_schema "@nutriphi/backend" "nutriphi"
;;
presi)
create_db_if_not_exists "presi"
push_schema "@presi/backend" "presi"
;;
storage)
create_db_if_not_exists "storage"
push_schema "@storage/backend" "storage"
;;
*)
echo -e "${RED}Unknown service: $service${NC}"
echo "Available services: auth, chat, zitare, contacts, calendar, clock, todo, manadeck, mail, moodlit, finance, voxel-lava, figgos, planta, nutriphi"
echo "Available services: auth, chat, zitare, contacts, calendar, clock, todo, manadeck, mail, moodlit, finance, voxel-lava, figgos, planta, nutriphi, presi, storage"
exit 1
;;
esac
@ -172,7 +181,7 @@ echo -e "\n${GREEN}Step 2: Pushing schemas${NC}"
echo "--------------------------------------"
# Push schemas for all known services
for service in auth chat zitare contacts calendar clock todo manadeck picture mail moodlit finance voxel-lava figgos planta nutriphi; do
for service in auth chat zitare contacts calendar clock todo manadeck picture mail moodlit finance voxel-lava figgos planta nutriphi presi storage; do
setup_service "$service" 2>/dev/null || true
done