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