-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (32 loc) · 1.16 KB
/
justfile
File metadata and controls
44 lines (32 loc) · 1.16 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
42
43
44
# Variables
BACKEND_DIR := "backend"
FRONTEND_DIR := "frontend"
FRONTEND_PACKAGE_MANAGER := "bun"
help:
@echo "Available commands:"
@just --list
setup:
cd {{BACKEND_DIR}} && uv sync --all-extras --dev
cd {{FRONTEND_DIR}} && {{FRONTEND_PACKAGE_MANAGER}} install
pre-commit install -c .pre-commit-config.yaml
frontend-dev:
cd {{FRONTEND_DIR}} && {{FRONTEND_PACKAGE_MANAGER}} run dev
backend-dev:
cd {{BACKEND_DIR}} && uv run python manage.py runserver
dev:
cd {{FRONTEND_DIR}} && {{FRONTEND_PACKAGE_MANAGER}} run dev & cd {{BACKEND_DIR}} && uv run python manage.py runserver
lint:
cd {{BACKEND_DIR}} && uv run ruff check . --fix
cd {{FRONTEND_DIR}} && {{FRONTEND_PACKAGE_MANAGER}} run lint:fix
format:
cd {{BACKEND_DIR}} && uv run ruff format --check .
cd {{FRONTEND_DIR}} && {{FRONTEND_PACKAGE_MANAGER}} run format
typecheck:
cd {{FRONTEND_DIR}} && {{FRONTEND_PACKAGE_MANAGER}} run typecheck
manage COMMAND:
cd {{BACKEND_DIR}} && uv run python manage.py {{COMMAND}}
test ARGS="":
cd {{BACKEND_DIR}} && uv run pytest {{ARGS}}
generate-client:
chmod +x scripts/generate-client.sh
./scripts/generate-client.sh