Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 packages

Both `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