Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ycjcl868/monorepo

Monorepo with pnpm and turborepo, deploying into Vercel.
https://github.com/ycjcl868/monorepo

monorepo nodejs react rust turborepo vite vue

Last synced: 5 days ago
JSON representation

Monorepo with pnpm and turborepo, deploying into Vercel.

Awesome Lists containing this project

README

        

# Monorepo

- [Better practice npm Package Design in Monorepo](https://www.rustc.cloud/monorepo-pkg) with [pnpm](https://pnpm.io/) and [turborepo](https://turborepo.org/), deploying into [Vercel](https://vercel.com/).
- [Creating a team-specific ESLint rule set using ChatGPT](https://www.rustc.cloud/eslint-gpt)

## Quick Start

Preinstall

```bash
$ 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

```bash
$ pnpm install
```

### Apps

Preview:
- [Next.js App](https://monorepo-next-app.vercel.app/)
- [CRA](https://monorepo-react-app.vercel.app/)
- [Umi App](https://monorepo-umi-app.vercel.app/)
- [Express App](https://monorepo-express-app.vercel.app/)
- [Vite Vue 3 App](https://monorepo-vite-vue3-app.vercel.app/)
- [Vite React App](https://monorepo-vite-react-app.vercel.app/)
- [Vue 3 Cli App](https://monorepo-vue3-cli-app.vercel.app/)
- [Remix App](https://remix-app-remix-monorepo.vercel.app/)
- [Dumi App](https://monorepo-dumi-app.vercel.app/)

### React App

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

![](https://user-images.githubusercontent.com/13595509/146680807-a15b411e-075a-438e-b020-f3d88240c55d.png)

### Vite App

```bash
$ pnpm start --filter "vite-app"
```

![](https://user-images.githubusercontent.com/13595509/146680790-c5b506ae-5006-42a2-b9df-c379499dab3b.png)

#### Node.js App

```bash
$ pnpm --filter "node-app" start
```

![](https://user-images.githubusercontent.com/13595509/146680754-8b6798f4-fa4f-43ff-929e-911e1343ef88.png)

#### Dumi App

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

![](https://user-images.githubusercontent.com/13595509/170510753-df4a6016-46b2-4252-9722-b765261c1a19.gif)

## Packages Development

### packages/shared

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

### packages/ui

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

### packages/native

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