Skip to main content

Module add

Module add 

Source
Expand description

rst add <folder> - register a folder as an app without answering the whole init questionnaire.

Where it lands depends on where it lives: inside the frontend repo’s apps/ it joins EXTRA_APPS and shares that bind mount, and beside the repo it joins ROOT_APPS and gets a mount of its own.

Structs§

Found

Enums§

Placement

Functions§

already_listed
appended
Append to a space separated list, leaving the order it already has.
first_script
The first of wanted that the folder’s package.json defines.
free_port
A port nothing else in the workspace has claimed.
locate
Resolve a folder name the way a person would mean it: the frontend repo’s apps/ first, then beside the repo.
record
Write the new app to both files: .env is what compose reads, and run.config.toml is what init rewrites .env from. Writing one alone means the next init --update either misses it or drops it.
runnable
Something to run. A folder with no manifest, or a library with only build and test scripts, is not an app.
start_command
The command that starts the app.