Monorepo Template (WIP) using Turborepo, SST, Tanstack Router, Bun, Drizzle ORM
See TODO.md for more details
Add Environment Variables:
Copy the .env.example
file to .env
and add your environment variables.
CLOUDFLARE_ACCOUNT_ID=<your-cloudflare-account-id>
Add new packages to the repo with Turborepo:
bun turbo gen workspace
# alternatively: `bun turbo gen workspace --type <app/package>` to specify the type of package to create
Update dependencies across the monorepo:
bunx taze -I -r
# or
bunx taze --interactive --recursive
bunx taze --include lodash,webpack # filter by package name
This Turborepo includes the following packages and apps:
Apps
Packages
Each package and app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
Refer to AndreasAugustin/actions-template-sync for a github action to sync the template. This repo uses the .github/workflows/template-sync.yml file to sync the template, which you can manually trigger the action from the Actions tab in Github. You can configure this to automatically sync with a cron schedule if you'd like.
Example Monorepos
best monorepo with turbo midday-ai/midday - a monorepo for my personal website and projects, built with Turborepo + pnpm 📚
Turborepo Generators
tsup
exports
to export the index.tsx/ts
file or use baseUrl/paths in base tsconfig.json to point to the index.tsx/ts
file