Skip to content
/ monorepo Public template

Monorepo with pnpm and turborepo, deploying into Vercel.

Notifications You must be signed in to change notification settings

ycjcl868/monorepo

Repository files navigation

Monorepo

Quick Start

Preinstall

$ npm i -g pnpm
$ pnpm -v # should >= 6.20.0
# Install Rust and Cargo
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install dependencies

$ pnpm install

Apps

Preview:

React App

# Start React App
$ pnpm --filter "react-app" start

Vite App

$ pnpm start --filter "vite-app"

Node.js App

$ pnpm --filter "node-app" start

Dumi App

# using `...` will run `start` script of dumi-app and all of its dependencies:
$ pnpm --filter "dumi-app..." --parallel start

Packages Development

packages/shared

$ pnpm --filter "@infras/shared" dev

packages/ui

$ pnpm --filter "@infras/ui" dev

packages/native

$ pnpm --filter "@infras/native" build