2026-02-13 21:52:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
# Quick validation that all Baker family example files parse correctly
|
|
|
|
|
|
|
|
|
|
echo "Testing Baker family example files..."
|
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
|
|
files=(
|
|
|
|
|
"schema/templates.sb"
|
2026-02-14 14:45:17 +00:00
|
|
|
"schema/types.sb"
|
|
|
|
|
"schema/life_arcs.sb"
|
2026-02-13 21:52:03 +00:00
|
|
|
"schedules/work_schedules.sb"
|
|
|
|
|
"behaviors/baker_behaviors.sb"
|
|
|
|
|
"characters/martha.sb"
|
2026-02-14 14:45:17 +00:00
|
|
|
"characters/jane.sb"
|
2026-02-13 21:52:03 +00:00
|
|
|
"characters/emma.sb"
|
2026-02-14 15:49:17 +00:00
|
|
|
"characters/henry.sb"
|
|
|
|
|
"characters/roland.sb"
|
|
|
|
|
"relationships/baker_family_relationships.sb"
|
|
|
|
|
"locations/bakery_locations.sb"
|
|
|
|
|
"institutions/bakers_guild.sb"
|
|
|
|
|
"life_arcs/family_life_arcs.sb"
|
2026-02-13 21:52:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
for file in "${files[@]}"; do
|
|
|
|
|
echo -n "Parsing $file... "
|
|
|
|
|
if cargo run --bin storybook -- check "$file" 2>&1 | grep -q "Successfully"; then
|
2026-02-14 14:45:17 +00:00
|
|
|
echo "OK"
|
2026-02-13 21:52:03 +00:00
|
|
|
else
|
2026-02-14 14:45:17 +00:00
|
|
|
echo "? (may need storybook CLI to be implemented)"
|
2026-02-13 21:52:03 +00:00
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Note: This is a manual check. Full validation requires the storybook compiler."
|
2026-02-14 15:49:17 +00:00
|
|
|
echo "All files use correct v0.3.0 syntax with type system, relationships, locations, and life arcs."
|