mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code are gone with no alias (MK41). brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it (the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines and signed asks run inside the loop (MK47). `raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake| sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went. docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out. raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal runner runs on the shipped binary.
37 lines
1.6 KiB
Markdown
37 lines
1.6 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"]
|
||
---
|
||
|
||
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.
|
||
|
||
```sh
|
||
raea make component list
|
||
raea make component add captions end-card
|
||
raea make component add reel --shared
|
||
```
|
||
|
||
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
|
||
|
||
## Usage
|
||
|
||
```sh
|
||
raea make component list | 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)
|
||
```
|
||
|
||
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 -->
|