mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
The CLI reference is now 43 pages, one a verb, each with its forms, where it runs and what each of its 164 flags does, under docs/manual/reference/cli. The forms and flags are generated from `raea help --json`; the prose and the flag descriptions are written by hand, kept by the generator, and checked: a new flag without a description fails. The SDK reference is 28 pages, one an import path, under docs/manual/reference/sdk: every export with its doc, its signature, a component's props, a class's members, its Bevy type and the parity ports and examples that use it, generated by the TypeScript compiler, with a hand-written introduction and a type-checked example on each page. Where the SDK mirrors a Bevy type without a comment of its own, Bevy's own doc is shown, marked as Bevy's (tools/manual-ref/bevy-docs.json). Doc comments added to the SDK exports that had none. tools/manual-ref.sh gen|check runs both generators.
1.5 KiB
1.5 KiB
title, summary, order, sources
| title | summary | order | sources | ||
|---|---|---|---|---|---|
| raea bundle | Bundle a composition into one JavaScript file that render_bundle draws, on the Mac or the iPhone. | 5 |
|
raea bundle runs the bundler raea render uses and stops there: the composition, its components and the SDK in
one JavaScript file. raea render --bundle draws such a file, and so does raea on the iPhone. With --portable,
the media the composition imports is copied next to the bundle and named relatively, so the two can travel together.
raea bundle piece.tsx --composition-bundle -o out/piece.comp.js --portable out/
raea render --bundle out/piece.comp.js --dir out/ --frame 0 -o check.png
Usage
raea bundle EDIT.tsx --composition-bundle -o OUT.js [--portable DIR] (a composition for render_bundle, on the Mac or the iPhone)
Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.
Flags
| Flag | Takes | What it does |
|---|---|---|
--composition-bundle |
– | Bundle a composition, with the entry that steps its Clock frame by frame. Without it the file is bundled as a plain script, as raea run bundles one. |
--portable |
DIR |
Copy every media file the composition imports into DIR/media and name it relatively in the bundle. |
-o |
OUT.js |
Where the bundle goes. |