Skip to content

Commit

Permalink
chore(examples): point monorepo to turborepo (#938)
Browse files Browse the repository at this point in the history
### Description

Point the monorepo example to turborepo. The template has already been
updated.

### Demo URL

<!--
Provide a URL to a live deployment where we can test your PR. If a demo
isn't possible feel free to omit this section.
-->

### Type of Change

- [ ] New Example
- [ ] Example updates (Bug fixes, new features, etc.)
- [ ] Other (changes to the codebase, but not to examples)

### New Example Checklist

- [ ] 🛫 `npm run new-example` was used to create the example
- [ ] 📚 The template wasn't used but I carefuly read the [Adding a new
example](https://github.com/vercel/examples#adding-a-new-example) steps
and implemented them in the example
- [ ] 📱 Is it responsive? Are mobile and tablets considered?
  • Loading branch information
tknickman committed Jul 19, 2024
1 parent f618892 commit 4f43d97
Show file tree
Hide file tree
Showing 28 changed files with 2 additions and 3,306 deletions.
4 changes: 0 additions & 4 deletions solutions/monorepo/.eslintrc.json

This file was deleted.

39 changes: 0 additions & 39 deletions solutions/monorepo/.gitignore

This file was deleted.

58 changes: 1 addition & 57 deletions solutions/monorepo/README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,3 @@
---
name: Monorepo with Turborepo
slug: monorepo-turborepo
description: Learn to implement a monorepo with a single Next.js site that has installed two local packages.
framework: Next.js
useCase:
- Monorepos
- Documentation
css: Tailwind
deployUrl: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fsolutions%2Fmonorepo&project-name=monorepo&repository-name=monorepo&root-directory=apps%2Fapp
demoUrl: https://solutions-monorepo.vercel.sh
relatedTemplates:
- monorepo-nx
- turborepo-next-basic
- turborepo-sveltekit-starter
---

# Monorepo

This is a monorepo example with a single Next.js site ([./apps/app](./apps/app)) that has installed two local packages:

- [./packages/ui](./packages/ui): Exports UI components that use TypeScript and Tailwind CSS and is compiled by SWC.
- [./packages/utils](./packages/utils): Exports utility functions that use TypeScript.

The monorepo is using [Turborepo](https://turborepo.org/) and [pnpm workspaces](https://pnpm.io/workspaces) to link packages together.

For more examples on monorepos check out the [official Turborepo examples](https://github.com/vercel/turborepo/tree/main/examples).

## Demo

https://solutions-monorepo.vercel.sh

## How to Use

You can choose from one of the following two methods to use this repository:

### One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/monorepo&project-name=monorepo&repository-name=monorepo&root-directory=apps/app&install-command=pnpm%20install&build-command=cd%20..%2F..%20%26%26%20pnpm%20build%20--filter%3Dapp...&ignore-command=npx%20turbo-ignore)

### Clone and Deploy

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [pnpm](https://pnpm.io/installation) to bootstrap the example:

```bash
pnpm create next-app --example https://github.com/vercel/examples/tree/main/solutions/monorepo monorepo
```

Next, run `app` in development mode:

```bash
pnpm dev
```

The app should be up and running at http://localhost:3000.

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=monorepo-example) ([Documentation](https://nextjs.org/docs/deployment)).
View all Monorepo examples at [vercel/turbo](https://github.com/vercel/turbo/tree/main/examples).
9 changes: 0 additions & 9 deletions solutions/monorepo/apps/app/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions solutions/monorepo/apps/app/next-env.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions solutions/monorepo/apps/app/next.config.js

This file was deleted.

31 changes: 0 additions & 31 deletions solutions/monorepo/apps/app/package.json

This file was deleted.

14 changes: 0 additions & 14 deletions solutions/monorepo/apps/app/pages/_app.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions solutions/monorepo/apps/app/pages/index.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions solutions/monorepo/apps/app/postcss.config.js

This file was deleted.

Binary file removed solutions/monorepo/apps/app/public/favicon.ico
Binary file not shown.
11 changes: 0 additions & 11 deletions solutions/monorepo/apps/app/tailwind.config.js

This file was deleted.

26 changes: 0 additions & 26 deletions solutions/monorepo/apps/app/tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions solutions/monorepo/apps/app/vercel.json

This file was deleted.

21 changes: 0 additions & 21 deletions solutions/monorepo/package.json

This file was deleted.

49 changes: 0 additions & 49 deletions solutions/monorepo/packages/ui/package.json

This file was deleted.

24 changes: 0 additions & 24 deletions solutions/monorepo/packages/ui/src/button/button.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions solutions/monorepo/packages/ui/src/button/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion solutions/monorepo/packages/ui/src/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions solutions/monorepo/packages/ui/src/tailwind.cjs

This file was deleted.

Loading

0 comments on commit 4f43d97

Please sign in to comment.