0265afa054
Import the runnable game code, content, docs, scripts, and repo guidance while leaving local agent state, dependency installs, build output, and backup copies out of the published tree.
19 lines
537 B
Bash
19 lines
537 B
Bash
#!/usr/bin/env bash
|
|
# test-content.sh — Run content validation from CLI
|
|
#
|
|
# Usage:
|
|
# bash tools/dev/test-content.sh
|
|
# bash tools/dev/test-content.sh --verbose
|
|
# bash tools/dev/test-content.sh --quests-only
|
|
|
|
set -euo pipefail
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
|
|
if ! command -v node &>/dev/null; then
|
|
echo "ERROR: node not found. Install Node.js to run content validation."
|
|
exit 1
|
|
fi
|
|
|
|
exec node "$PROJECT_ROOT/tools/content/validate-content.js" "$@"
|