Files
raea/docs/manual/reference/cli/add.md
T
shinyobjectz 2881f190bb Docs: a page for every CLI verb and every SDK import path on raea.io/docs
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.
2026-11-08 19:43:15 -08:00

1.5 KiB
Raw Blame History

title, summary, order, sources
title summary order sources
raea add Add, remove and install npm packages for a project, with no Node or npm: raea.lock and node_modules. 28
io/npm/src/lib.rs

A composition can import npm packages. raea add resolves them, fetches each tarball once into a store every project shares (~/.raea/npm/store, checked against the registry's hash) and lays out node_modules the way pnpm does. The resolution is kept in raea.lock beside package.json, so an install with nothing new asks the registry nothing.

raea add d3-shape@^3 culori
raea add --dev @types/d3-shape
raea remove culori
raea install --offline

Install scripts never run, since there is no Node to run them; a package that needs one is named in the report.

Usage

raea add PKG[@RANGE]... [--dev] | remove NAME... | install [--offline]  [--in DIR]   (npm packages for the project: raea.lock, node_modules)

Headless: it needs nothing running and opens no window. Takes any number of arguments besides its flags.

Flags

Flag Takes What it does
--dev – Add the packages as dev dependencies.
--in DIR The project folder holding package.json (the current folder by default).
--offline – With install: use only what raea.lock and the store already have, asking the registry nothing.