Add Modules After Scaffold
Use bw add to add package wiring, thin mounts, and migrations to an existing generated platform app.
Terminal
bw add projects --dry-run
bw add projects
pnpm install
The command resolves transitive requirements, updates package and shell settings, copies direct package mounts, appends unapplied Supabase migrations, and updates .brightweb/app-manifest.json.
Generated mounts
- CRM:
app/crm/page.tsxplus direct package handler aliases underapp/api/crm/. - Admin:
app/admin/users/page.tsxplus direct package handler aliases underapp/api/admin/users/. - Marketing:
app/marketing/page.tsxplus campaign, topic, segment, workflow, analytics, worker, webhook, and unsubscribe routes underapp/api/marketing/. - Projects: package-owned staff routes under
app/projetos/, client account routes, and direct adapters underapp/api/projects/andapp/api/account/projects/.
Generated product pages remain thin direct package mounts. Customize reusable behavior in the owning package, or mark an app route as owned before replacing its starter composition.
Validation checks
- The dependency and
transpilePackagesentries exist. config/modules.tsandconfig/shell.tsexpose the selected module.- New route files contain only direct
@brightweblabs/*re-exports. - Required migrations are present and applied through the normal database workflow.