Files
qbz/scripts/dev-ghost-doctor.sh
T
vicrodh 067264e7ec chore(scripts): add ghost-doctor and ultra-restore dev tooling
Add dev-ghost-doctor.sh (t-shadow check + runtime clean + restart) and
dev-ultra-restore.sh (deep clean with --full/--no-start/--check flags).
Improve check-no-t-shadow.sh patterns for broader t-variable detection.
Clean-dev-runtime now runs guardrail check automatically. Remove --force
from vite dev. Add npm script shortcuts for all new tools.
2026-02-26 02:44:06 -06:00

25 lines
589 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "${ROOT_DIR}"
NO_START=false
if [[ "${1:-}" == "--no-start" ]]; then
NO_START=true
fi
echo "[qbz] Ghost doctor: checking for t-shadow and fragile i18n patterns..."
bash ./scripts/check-no-t-shadow.sh
echo "[qbz] Ghost doctor: cleaning runtime state..."
bash ./scripts/clean-dev-runtime.sh
if [[ "${NO_START}" == "true" ]]; then
echo "[qbz] Ghost doctor complete (no-start mode)."
exit 0
fi
echo "[qbz] Ghost doctor: starting tauri dev in foreground..."
exec npm run tauri dev