Development Workflow
A repo-aligned day-to-day workflow for building features.
Start the app
pnpm compose:dev:uppnpm devOrganize feature code
Typical feature layout:
apps/web/app/[locale]/(internal)/feature/├── page.tsx├── _components/└── _lib/Common naming:
- loaders:
*-page.loader.ts - actions:
*-server-actions.ts - schemas:
*.schema.ts
When to create a package
Create a shared workspace package only if the code needs a stable boundary or will be reused across apps/packages. Put it under packages/ or an existing grouped family like packages/account/ or packages/organization/.
Suggested flow
- create or update validation schema
- update database code if needed
- add loader or action
- build UI
- verify with repo checks
Checks
pnpm typecheckpnpm lint:fixpnpm format:fixpnpm test:unitpnpm healthcheck is useful too, but it does not replace pnpm test:unit.
Next: Adding Features →