-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathJustfile
More file actions
41 lines (33 loc) · 1.22 KB
/
Copy pathJustfile
File metadata and controls
41 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Default: run app
default: run
# Start app (compose + browser + tailwind watch)
run *args:
#!/usr/bin/env sh
trap 'kill 0' EXIT
bun install --frozen-lockfile
just up {{ args }} &
(sleep 4 && uv run -m webbrowser http://localhost:8000) &
just tailwindcss-watch
wait
# Bring up local containers
up *args:
docker compose -f docker-compose.local.yml up {{ args }}
# Tear down + wipe volumes
destroy:
docker compose -f docker-compose.local.yml down --volumes
# Run any command in the django container
exec +cmd:
docker compose -f docker-compose.local.yml run --rm django {{ cmd }}
# Make migrations
makemigrations *args:
docker compose -f docker-compose.local.yml run --rm django python manage.py makemigrations {{ args }}
# Apply migrations
migrate:
docker compose -f docker-compose.local.yml run --rm django python manage.py migrate
# Tailwind watch + minify (uses bunx so @iconify/tailwind4 plugin loads)
tailwindcss-watch:
bunx tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css --watch --minify
# Tailwind one-shot build
tailwindcss-build:
bun install --frozen-lockfile
bunx tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css --minify