Mercurial
diff mrjunejune/test/production_bundle_exclusion_test.sh @ 259:667156fcd3e3
Add dev-only cyberpunk JRPG page
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Wed, 05 Aug 2026 09:19:41 -0700 |
| parents | |
| children | 04fee26ecce0 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mrjunejune/test/production_bundle_exclusion_test.sh Wed Aug 05 09:19:41 2026 -0700 @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +set -euo pipefail + +bundle="$1" + +if find "$bundle" -type f | grep -E '/jrpg/|pixel-mplus-12-regular'; then + echo "Production bundle contains development-only JRPG files" >&2 + exit 1 +fi + +if grep -R -a -l -E '"/jrpg"|/jrpg/index\.html' "$bundle"; then + echo "Production bundle contains a development-only JRPG route" >&2 + exit 1 +fi