Skip to content

PandariaTeam/puzzle3

Repository files navigation

Monorepo

Better practice npm Package Design in Monorepo with pnpm and turborepo, deploying into Vercel.

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