Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryogenicplanet/typescript-monorepo-example
Typescript monorepo example
https://github.com/cryogenicplanet/typescript-monorepo-example
esbuild eslint monorepo pnpm-workspace prettier typescript vite
Last synced: 6 days ago
JSON representation
Typescript monorepo example
- Host: GitHub
- URL: https://github.com/cryogenicplanet/typescript-monorepo-example
- Owner: CryogenicPlanet
- Created: 2021-06-02T16:39:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-07T18:52:37.000Z (12 months ago)
- Last Synced: 2023-11-07T19:48:28.364Z (12 months ago)
- Topics: esbuild, eslint, monorepo, pnpm-workspace, prettier, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 96.7 KB
- Stars: 65
- Watchers: 3
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Typescript Monorepo Example
This is a modern typescript monorepo example
The full write up on how this monorepo works is and how to set it up [here](https://github.com/nickpainter/typescript-monorepo-example.git)
## Package Breakdown
1. `interfaces`
Typescript only interface repo, no build step, no testing, no javascript support
2. `package-a`
Package with build step, testing, dependance on `interfaces`, and with publish support for javascript.
Uses `esbuild` for building -> more configurable, better for complex packages
3. `package-b`
React package with build step, dependance on `package A`, and with publish support for javascript.
Uses `vite` for building, perfect for frontend packages.
3. `package-c`
Package with build step and publish support for javascript.
Uses `tsup` for building -> zero config, better for simpler packagesBoth `tsup` and `vite` are built upon `esbuild` so they are all insanely fast.
## Technologies
- Pnpm - more space efficent package manager
- Esbuild - blazing fast build tool
- Vite - Support for frontend ui packages
- Eslint
- Prettier
- Jest
- [Typescript Project Reference](https://www.typescriptlang.org/docs/handbook/project-references.html) - Incremental and composite typescript builds