mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
* The component library: 609 open-source effects sorted by use, searched by `raea make component list WORDS` and copied by `add NAME` sdk/raea/library/components holds 475 pieces from remocn, 79 from the React Video Editor templates and 55 from snapcn, ported to raea's composition API and sorted by what they're for (text, numbers, transitions, screens, HUDs and more), not by who made them. catalog.json lists each piece's category, type, what it does, its files, the shared helpers it needs, its fonts and npm packages and its source; CREDITS.md holds the licences and every file's first line names its source. - `raea make component list` ends with the library's categories; `list WORDS` searches by category, category/type or words (catalog.ts). `add NAME` copies the piece into components/CATEGORY/NAME/ with its helpers under components/_lib/, and installs its npm packages through the engine. - The native host reads the library beside the binary (share/raea, which tools/release.sh already packs from sdk/raea/library), in RAEA_HOME, or in the tree a built raea runs from. - tools/effects-catalog.sh writes the cut-down catalogue raea cloud's dashboard imports (Libraries › Effects). - tools/size.sh leaves the library out: it's other people's code, kept as they wrote it but for imports. - conformance/catalog.test.ts: every listed file exists, imports stay inside what a piece copies, none imports another video framework, and search finds by use. * raea help's line for make component says list WORDS searches the library * no-void leaves the component library out: its gradient shader's own name is void --------- Co-authored-by: shinyobjectz <[email protected]>
47 lines
2.5 KiB
Markdown
47 lines
2.5 KiB
Markdown
---
|
||
title: "raea make component"
|
||
summary: "Copy a ready-made component or set into the project's components/, or the workspace's shared/components/, to use and change as your own."
|
||
order: 103
|
||
sources: ["engine/cli/src/index.ts", "engine/cli/src/registry.gen.ts", "engine/cli/src/catalog.ts"]
|
||
---
|
||
|
||
Components are ready-made pieces of a composition (captions, lower thirds, end cards and the like) and sets of them.
|
||
`raea make component list` shows them; `raea make component add` copies one into `components/NAME/`, where it's yours: raea
|
||
never updates or overwrites it unasked. With `--shared` it goes into the workspace's `shared/components/` instead, for
|
||
every project to import as `@shared/components/NAME`. `raea part` is the old name and still works.
|
||
|
||
Beside raea's own sets is the library: several hundred open-source components (text reveals, counters, charts,
|
||
transitions, product-screen demos, game HUDs and more), sorted by what they're for rather than who made them.
|
||
`raea make component list` ends with its categories; `list WORDS` searches it by a category (`text`), a category and
|
||
type (`text/reveal`), or words in a name or description (`"count up"`). `add NAME` copies the component into
|
||
`components/CATEGORY/NAME/`, with the shared helpers it needs under `components/_lib/`. Each file's first line names
|
||
the library it came from, and `CREDITS.md` in sdk/raea/library/components holds their licences.
|
||
|
||
```sh
|
||
raea make component list
|
||
raea make component add captions end-card
|
||
raea make component add reel --shared
|
||
raea make component list text/reveal
|
||
raea make component list count up
|
||
raea make component add soft-blur-in
|
||
```
|
||
|
||
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
|
||
|
||
## Usage
|
||
|
||
```sh
|
||
raea make component list [WORDS] | raea make component add NAME ... [--shared] [--force] (a ready component or set copied into components/, or the workspace's shared/components/ with --shared, yours to change; WORDS search the library by use: text/reveal, "count up")
|
||
```
|
||
|
||
Headless: it needs nothing running and opens no window. Takes any number of arguments besides its flags.
|
||
|
||
## Flags
|
||
|
||
| Flag | Takes | What it does |
|
||
| --- | --- | --- |
|
||
| `--force` | – | Replace a component's files that are already there. Without it, an existing component is left alone and the command stops. |
|
||
| `--shared` | – | Copy into the workspace's `shared/components/` instead, where every project in the workspace imports it as `/components/NAME`. |
|
||
|
||
<!-- generated:end -->
|