Starter template for creating new modular packages in the ODH Dashboard monorepo.
Provides a ready-to-use scaffold for adding a new feature package. Includes pre-configured TypeScript, ESLint, Jest, a Dockerfile for the BFF sidecar, and Module Federation entry point wiring.
- Copy this directory:
cp -r packages/plugin-template packages/<your-package-name>
- Update
package.json— setname,description, and dependencies. - Update
Dockerfile.workspaceif your package needs a custom BFF image. - Add your package to the Turbo pipeline (
turbo.json) andBOOKMARKS.md. - Run
/create-package-docto generatedocs/overview.mdand register inBOOKMARKS.md.
| Path | Description |
|---|---|
src/ |
Feature source code |
Dockerfile.workspace |
BFF container definition |
jest.config.ts |
Jest setup (extends shared config) |
tsconfig.json |
TS config (extends shared config) |
This is a starter template with no active scripts (scripts__options in package.json).
After copying and renaming, uncomment the scripts block and run:
npx turbo run build --filter=@odh-dashboard/<your-package-name>
npx turbo run test-unit --filter=@odh-dashboard/<your-package-name>For full documentation see
docs/guidelines.md.