this repo has no description
1default:
2 @just --list
3
4run:
5 cargo run
6
7run-release:
8 cargo run --release
9
10build:
11 cargo build
12
13build-release:
14 cargo build --release
15
16check:
17 cargo check
18
19clippy:
20 cargo clippy -- -D warnings
21
22fmt:
23 cargo fmt
24
25fmt-check:
26 cargo fmt -- --check
27
28lint: fmt-check clippy
29
30# Run tests (auto-starts and auto-cleans containers)
31test *args:
32 ./scripts/run-tests.sh {{args}}
33
34# Run a specific test file
35test-file file:
36 ./scripts/run-tests.sh --test {{file}}
37
38# Run tests with testcontainers (slower, no shared infra)
39test-standalone:
40 BSPDS_ALLOW_INSECURE_SECRETS=1 cargo test
41
42# Manually manage test infrastructure (for debugging)
43test-infra-start:
44 ./scripts/test-infra.sh start
45
46test-infra-stop:
47 ./scripts/test-infra.sh stop
48
49test-infra-status:
50 ./scripts/test-infra.sh status
51
52clean:
53 cargo clean
54
55doc:
56 cargo doc --open
57
58db-create:
59 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database create
60
61db-migrate:
62 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx migrate run
63
64db-reset:
65 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database drop -y
66 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database create
67 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx migrate run
68
69docker-up:
70 docker compose up -d
71
72docker-down:
73 docker compose down
74
75docker-logs:
76 docker compose logs -f
77
78docker-build:
79 docker compose build
80
81# Frontend commands (Deno)
82frontend-dev:
83 . ~/.deno/env && cd frontend && deno task dev
84
85frontend-build:
86 . ~/.deno/env && cd frontend && deno task build
87
88frontend-clean:
89 rm -rf frontend/dist frontend/node_modules
90
91# Frontend tests
92frontend-test *args:
93 . ~/.deno/env && cd frontend && VITEST=true deno task test:run {{args}}
94
95frontend-test-watch:
96 . ~/.deno/env && cd frontend && VITEST=true deno task test:watch
97
98frontend-test-ui:
99 . ~/.deno/env && cd frontend && VITEST=true deno task test:ui
100
101frontend-test-coverage:
102 . ~/.deno/env && cd frontend && VITEST=true deno task test:run --coverage
103
104# Build all (frontend + backend)
105build-all: frontend-build build
106
107# Test all (backend + frontend)
108test-all: test frontend-test