Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhenriquez28/nest-turborepo
https://github.com/rhenriquez28/nest-turborepo
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rhenriquez28/nest-turborepo
- Owner: rhenriquez28
- Created: 2023-03-12T04:26:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-17T19:37:26.000Z (over 1 year ago)
- Last Synced: 2024-10-04T21:14:25.001Z (about 1 month ago)
- Language: TypeScript
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a repo which purpose is to demo different approaches to integrate a Nest.js monorepo with Turborepo.
Currently, this repo showcases two approaches:
1. Nest.js monorepo within Turborepo: This approach assumes that all Nest.js apps and libraries' dependencies will live in the repo's root `package.json`. This approach lives in the `main` branch.
2. Turborepo with Nest.js projects: This approach assumes that all Nest.js apps and libraries have their own `package.json`, with their own scripts and node_modules. This approach lives in the `nest-turbo-separate-pkgs` branch.
Dependencies:
- You need to have installed the [nest-cli](https://docs.nestjs.com/cli/overview) and [yarn classic](https://classic.yarnpkg.com/en/docs/install#mac-stable) in your system.
- Run `yarn` at the root of the repo to install all deps in each branchTo build and run the main project (`nest-app`) these are the following steps:
- For `main` :
- build: `nest build nest-app`
- start: `nest start nest-app`
- For `nest-turbo-separate-pkgs`:
- build: `yarn --cwd apps/nest-app build`
- start: `yarn --cwd apps/nest-app start`