This repo demonstrates various TypeScript monorepo structures. All with similar structure and packages.
You can see each demonstration on these respective git branches:
lerna
pnpm
pnpm-and-lage
pnpm-and-ultra-runner
rush
(TBA)
- @infra/deploy-service
- @infra/deploy-web
- @infra/shared-configs
- apps/web-application <- @infra/deploy-web
- apps/web-application <- @infra/shared-configs
- apps/web-application <- button
- apps/web-application <- service-client
- packages/button <- @infra/shared-configs
- packages/math-util <- @infra/shared-configs
- packages/service-client <- @infra/shared-configs
- packages/service-client <- math-service (only for types)
- services/math-service <- @infra/deploy-service
- services/math-service <- @infra/shared-configs
- services/math-service <- math-utils
- "clean" - remove dist
- "lint" - run ESLint
- "static-check" - run TypeScript
- "unit-test" - run Jest
- Jest Config
- "build" - Bundle for the browser
- "deploy" - Run a script that sleeps for 10s
- "start" - Start a development server
- ESLint profile: Web
- TypeScript profile: Web
- "build" - Bundle for the browser
- ESLint profile: Web
- TypeScript profile: Web
- "build" - Bundle for node
- ESLint profile: Node
- TypeScript profile: Node
- "build" - Bundle for Node
- ESLint profile: Node
- TypeScript profile: Node
- "build" - Bundle for node
- "deploy" - Run a script that sleeps for 10s
- ESLint profile: Node
- TypeScript profile: Node