Something went wrong. Try again.
Our Personal Data Server from scratch! forked from tranquil.farm/tranquil-pds
Something went wrong. Try again.
tranquil-pds justfile
4.0 kB · 117 lines
Just
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118default: @just --list
run: cargo run -p tranquil-serverrun-release: cargo run -p tranquil-server --releasebuild: cargo buildbuild-release: cargo build --releasecheck: cargo checkclippy: cargo clippy -- -D warningsfmt: cargo fmtfmt-check: cargo fmt -- --checklint: fmt-check clippy
test-store: SQLX_OFFLINE=true cargo nextest run -p tranquil-store --features tranquil-store/test-harness
test-store-sim-nightly: SQLX_OFFLINE=true TRANQUIL_SIM_SEEDS=10000 cargo nextest run -p tranquil-store --features tranquil-store/test-harness --profile sim-nightly
test-unit: SQLX_OFFLINE=true cargo test --test dpop_unit --test validation_edge_cases --test scope_edge_cases
test-auth: ./scripts/run-tests.sh --test oauth --test oauth_lifecycle --test oauth_scopes --test oauth_security --test jwt_security --test session_management --test change_password --test password_reset
test-admin: ./scripts/run-tests.sh --test admin_email --test admin_invite --test admin_moderation --test admin_search --test admin_stats
test-sync: ./scripts/run-tests.sh --test sync_repo --test sync_blob --test sync_conformance --test sync_deprecated --test firehose_validation
test-repo: ./scripts/run-tests.sh --test repo_batch --test repo_blob --test record_validation --test lifecycle_record
test-identity: ./scripts/run-tests.sh --test identity --test did_web --test plc_migration --test plc_operations --test plc_validation
test-account: ./scripts/run-tests.sh --test lifecycle_session --test delete_account --test invite --test email_update --test account_notifications
test-security: ./scripts/run-tests.sh --test security_fixes --test banned_words --test rate_limit --test moderation
test-import: ./scripts/run-tests.sh --test import_verification --test import_with_verification
test-misc: ./scripts/run-tests.sh --test actor --test commit_signing --test image_processing --test lifecycle_social --test notifications --test server --test signing_key --test verify_live_commit
test *args: @just test-store @just test-unit ./scripts/run-tests.sh {{args}}
test-embedded *args: @just test-unit SQLX_OFFLINE=true TRANQUIL_TEST_BACKEND=store TRANQUIL_PDS_ALLOW_INSECURE_SECRETS=1 DISABLE_RATE_LIMITING=1 TRANQUIL_LEXICON_OFFLINE=1 SKIP_IMPORT_VERIFICATION=true cargo nextest run -E 'not binary(store_parity)' {{args}}
test-one name: ./scripts/run-tests.sh --test {{name}}
infra-start: ./scripts/test-infra.sh startinfra-stop: ./scripts/test-infra.sh stopinfra-status: ./scripts/test-infra.sh status
clean: cargo cleandoc: cargo doc --opendb-create: DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database createdb-migrate: DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx migrate rundb-reset: DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database drop -y DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database create DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx migrate runpodman-up: podman compose up -dpodman-down: podman compose downpodman-logs: podman compose logs -fcontainer-build: podman build -t tranquil-pds:latest . podman build -t tranquil-pds-frontend:latest ./frontend
frontend-dev: . ~/.deno/env && cd frontend && deno task devfrontend-build: . ~/.deno/env && cd frontend && deno task buildfrontend-check: . ~/.deno/env && cd frontend && deno task checkfrontend-clean: rm -rf frontend/dist frontend/node_modules
frontend-test *args: . ~/.deno/env && cd frontend && VITEST=true deno task test:run {{args}}frontend-test-watch: . ~/.deno/env && cd frontend && VITEST=true deno task test:watchfrontend-test-ui: . ~/.deno/env && cd frontend && VITEST=true deno task test:uifrontend-test-coverage: . ~/.deno/env && cd frontend && VITEST=true deno task test:run --coverage
build-all: frontend-build build