mirror of
https://github.com/0xWheatyz/handler.git
synced 2026-08-30 07:46:24 +00:00
962a613cc6
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCxHDoWDBHJ9GN3djVFkpw
34 lines
1.0 KiB
TOML
34 lines
1.0 KiB
TOML
# Handler dogfoods its own gate: this repo defines the canonical `test` task the
|
|
# control layer's Stop hook enforces. Any project Handler manages carries one of these.
|
|
[tools]
|
|
python = "3.11"
|
|
|
|
[tasks.test]
|
|
description = "Run the test suite"
|
|
run = "pytest"
|
|
|
|
[tasks.lint]
|
|
description = "Lint the codebase"
|
|
run = "ruff check ."
|
|
|
|
[tasks.verify]
|
|
description = "Lint then test"
|
|
depends = ["lint", "test"]
|
|
|
|
[tasks.expo]
|
|
description = "Start the Expo Go dev server for the mobile app; set EXPO_ENDPOINT to the public URL of your reverse proxy"
|
|
dir = "app"
|
|
run = """
|
|
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
if [ -z "${EXPO_ENDPOINT:-}" ]; then
|
|
echo "EXPO_ENDPOINT is not set." >&2
|
|
echo "Set it to the public URL your reverse proxy exposes, e.g.:" >&2
|
|
echo " EXPO_ENDPOINT=https://expo.example.com mise run expo" >&2
|
|
exit 1
|
|
fi
|
|
# Expo CLI uses EXPO_PACKAGER_PROXY_URL in place of the LAN/localhost URL when
|
|
# building manifest and QR-code URLs, so Expo Go connects through the proxy.
|
|
EXPO_PACKAGER_PROXY_URL="$EXPO_ENDPOINT" npx expo start
|
|
"""
|