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§
- Declared
- An app as it is declared: the entry in the list, plus the name its
settings are keyed on. For a
name:dirpair those differ. - Found
Enums§
Functions§
- already_
listed - appended
- Append to a space separated list, leaving the order it already has.
- find_
declared - Find a declared app by either half of a
name:dirpair, so removing it works whichever half the person remembers. - first_
script - The first of
wantedthat the folder’s package.json defines. - forget
- Drop the app from the list and take its port and command with it, from both files. Leaving the settings behind would put them back on the next app that happens to take the same name.
- 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 --updateeither 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.
- service_
name - A folder beside the repo is usually named for the project it belongs to -
althaqeel-seederin thealthaqeelworkspace. The project prefix says nothing you do not already know, so the service is justseeder. - start_
command - The command that starts the app.
- without