Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

size and no-void skip skills/, as they do in the live tree

shinyobjectz86fe5d36734a
diff --git a/tools/no-void.sh b/tools/no-void.sh
index 179bd665..aeedc86c 100755
--- a/tools/no-void.sh
+++ b/tools/no-void.sh
@@ -23,7 +23,8 @@ SHIMS=(':!systems/ml/src/feed.rs')
# a recorded SEO rankings file (the keywords searched that day)
# P26 baseline rows already taken (their notes name the composition as it was then)
RECORDS=(':!*-OFL.txt' ':!apps/site/seo/rankings/*' ':!bench/p26-baseline/manifest.jsonl')
-SKIP=("${SHIMS[@]}" "${RECORDS[@]}" ':!*.lock' ':!*pnpm-lock.yaml' ':!*package-lock.json' ':!*/vendor/*' ':!vendor/*' ':!**/node_modules/**' ':!tools/no-void.allow' ':!tools/no-void.sh' ':!docs/handoff/*' ':!docs/overhaul/audit/*' ':!*LICENSE*' ':!*LICENCE*' ':!*.png' ':!*.jpg' ':!*.mp4' ':!*.woff2' ':!*.glb' ':!*.wasm')
+# raea-skills (skills/) is its own repo: an export has its files, the live tree's git grep never reads them
+SKIP=("${SHIMS[@]}" "${RECORDS[@]}" ':!skills/*' ':!*.lock' ':!*pnpm-lock.yaml' ':!*package-lock.json' ':!*/vendor/*' ':!vendor/*' ':!**/node_modules/**' ':!tools/no-void.allow' ':!tools/no-void.sh' ':!docs/handoff/*' ':!docs/overhaul/audit/*' ':!*LICENSE*' ':!*LICENCE*' ':!*.png' ':!*.jpg' ':!*.mp4' ':!*.woff2' ':!*.glb' ':!*.wasm')
# file:line of each use, in one repo (prefixed with its path in raea)
uses() {
diff --git a/tools/size.sh b/tools/size.sh
index f4a85adf..310f309a 100755
--- a/tools/size.sh
+++ b/tools/size.sh
@@ -13,10 +13,11 @@ cd "$ROOT" || exit 2
FILE_MAX=${FILE_MAX:-500}
CRATE_MAX=${CRATE_MAX:-2000}
ALLOW=tools/size.allow
-# code only; vendored crates are upstream's, lockfiles and type declarations are generated, and so is a file whose first
+# code only (raea-skills, skills/, is its own repo: an export has its files, the live tree's git doesn't list them);
+# vendored crates are upstream's, lockfiles and type declarations are generated, and so is a file whose first
# line says it was ("// Generated by ...": its generator checks it for drift, and nobody edits it)
files() {
- git ls-files --cached --others --exclude-standard -- '*.rs' '*.ts' '*.tsx' '*.mjs' '*.js' '*.sh' ':!vendor/*' ':!*/vendor/*' ':!**/node_modules/**' ':!*.d.ts' \
+ git ls-files --cached --others --exclude-standard -- '*.rs' '*.ts' '*.tsx' '*.mjs' '*.js' '*.sh' ':!vendor/*' ':!*/vendor/*' ':!**/node_modules/**' ':!*.d.ts' ':!skills/*' \
':!*.min.js' | while read -r f; do [ -f "$f" ] && ! head -1 "$f" | grep -qi '^// generated by' && echo "$f"; done
}
# "lines path" per file over FILE_MAX