view 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 source

#!/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