Skip to content

mizchi/monorepo

Repository files navigation

Monorepo

My monorepo boilerplate.

Stack

  • turborepo
  • typescript
  • vite/vitest
  • biome
  • react

Use as monorepo base

$ git clone https://github.com/mizchi/monorepo
# cd <here>
$ rm -r apps packages
$ pnpm install

## Tasks
$ pnpm build
$ pnpm test
$ pnpm typecheck
$ pnpm format
$ pnpm check # biome check on ci

Use pkg with turbo gen workspace

Add dependencies

pnpm add vite vitest typescript -Dw

Put tsconfig.base.jon

{
  "compilerOptions": {
    "target": "es2020",
    "module": "NodeNext",
    "allowJs": true,
    "moduleResolution": "NodeNext",
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "skipLibCheck": true,
    "types": ["vitest/importMeta"]
  }
}

Npm module

npx turbo gen workspace --copy https://github.com/mizchi/monorepo/tree/main/packages/lib-base --type package --name lib --destination=packages/lib

React Library

npx turbo gen workspace --copy https://github.com/mizchi/monorepo/tree/main/packages/react-lib-base --type package --name react-lib --destination=packages/react-lib

Cli

npx turbo gen workspace --copy https://github.com/mizchi/monorepo/tree/main/packages/cli-base --type package --name cli --destination=packages/cli

React App

npx turbo gen workspace --copy https://github.com/mizchi/monorepo/tree/main/apps/react-base --type app --name react-app --destination=apps/react-app

React Panda Radix App

npx turbo gen workspace --copy https://github.com/mizchi/monorepo/tree/main/apps/panda-base --type app --name panda-app --destination=apps/panda-app

Cloudflare Workers App

npx turbo gen workspace --copy https://github.com/mizchi/monorepo/tree/main/apps/cf-workers-base --type app --name cf-worker --destination=apps/cf-worker

LICENSE

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published