comparison 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
comparison
equal deleted inserted replaced
258:60a876c4587a 259:667156fcd3e3
1 #!/usr/bin/env bash
2 set -euo pipefail
3
4 bundle="$1"
5
6 if find "$bundle" -type f | grep -E '/jrpg/|pixel-mplus-12-regular'; then
7 echo "Production bundle contains development-only JRPG files" >&2
8 exit 1
9 fi
10
11 if grep -R -a -l -E '"/jrpg"|/jrpg/index\.html' "$bundle"; then
12 echo "Production bundle contains a development-only JRPG route" >&2
13 exit 1
14 fi