chore: migrate build commands to poe

Signed-off-by: Tobias O <tobias.olenyi@envipath.com>
This commit is contained in:
2025-10-13 21:24:51 +13:00
parent 110fbe12c1
commit f76861a83f
2 changed files with 9 additions and 1 deletions

View File

@ -70,7 +70,8 @@ docstring-code-format = true
[tool.poe.tasks]
# Main tasks
setup = { sequence = ["db-up", "migrate", "bootstrap"], help = "Complete setup: start database, run migrations, and bootstrap data" }
dev = { cmd = "python manage.py runserver", help = "Start the development server", deps = ["db-up"] }
dev = { cmd = "python manage.py runserver", help = "Start the development server with CSS watcher", deps = ["db-up"] }
build = { sequence = ["build-frontend", "collectstatic"], help = "Build frontend assets and collect static files" }
# Database tasks
db-up = { cmd = "docker compose -f docker-compose.dev.yml up -d", help = "Start PostgreSQL database using Docker Compose" }
@ -94,3 +95,7 @@ echo " Email: admin@envipath.com"
echo " Password: SuperSafe"
""", help = "Bootstrap initial data (anonymous user, packages, models)" }
shell = { cmd = "python manage.py shell", help = "Open Django shell" }
# Build tasks
build-frontend = { cmd = "pnpm run build", help = "Build frontend assets using pnpm" }
collectstatic = { cmd = "python manage.py collectstatic --noinput", help = "Collect static files for production" }