Files
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00

18 lines
843 B
Bash
Executable File

#!/bin/bash
# Field coverage (docs/control.feature FC0b): each tier-1 Bevy type's reflected fields against the typed props that name
# them (tools/sdk-fields.ts), written to docs/control/fields.tsv, and the totals.
# tools/sdk-fields needs target/release/raea-bevy-sdk (the plugin build's) for the schema
set -euo pipefail
ROOT=$(cd "$(dirname "$0")/.." && pwd)
cd "$ROOT"
T=${TMPDIR:-/tmp}/raea-sdk-fields
mkdir -p "$T" docs/control
tools/sdk-coverage --rows > "$T/rows.tsv"
args=()
while IFS=$'\t' read -r area item _ tier _; do
[ "$area" = bevy ] && [ "$tier" = 1 ] && args+=(--type "$item")
done < "$T/rows.tsv"
target/release/raea-bevy-sdk "${args[@]}" --schema "$T/schema.json" -o "$T/schema.ts" > "$T/sdk.log" 2>&1
bun tools/sdk-fields.ts "$T/rows.tsv" "$T/schema.json" > docs/control/fields.tsv
tail -1 docs/control/fields.tsv