Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wwwebman/lerna-monorepo-typescript-example
Lerna Typescript Monorepo example
https://github.com/wwwebman/lerna-monorepo-typescript-example
Last synced: 4 months ago
JSON representation
Lerna Typescript Monorepo example
- Host: GitHub
- URL: https://github.com/wwwebman/lerna-monorepo-typescript-example
- Owner: wwwebman
- License: mit
- Created: 2020-06-20T20:54:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T21:15:39.000Z (about 2 years ago)
- Last Synced: 2024-10-19T04:55:11.680Z (4 months ago)
- Language: TypeScript
- Size: 4.27 MB
- Stars: 66
- Watchers: 3
- Forks: 14
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lerna monorepo for Typescript codebase with tsconfig-paths + Lerna + symlinks
The example shows how you can manage monorepo using [Lerna](https://github.com/lerna/lerna) monorepo package managing tool.
In this example you can figure out how to:- Setup Lerna for [Typescript](https://www.typescriptlang.org/) codebase
- Setup custom aliases on the server and the client
- Make aliases work together with [Jest](https://jestjs.io/)The example shows how to handle all cases from above based only on the
[tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths) + Lerna + symlinks
solution.More detail you can find [here](https://webman.pro/blog/lerna-monorepo-typescript-react-node-worklow/#tsconfigpaths--lerna--symlinks).
Monorepo consists of 3 packages:
- [@project/app](./packages/app)
- [@project/utils](./packages/utils)
- [@project/ui](./packages/ui)Install it and run:
Development:
```bash
yarn
cd packages/app
yarn dev
```Production:
```bash
yarn
yarn app:build
cd packages/app
yarn start
```**Read more in the [article](https://webman.pro/blog/how-to-setup-typescript-path-aliases-in-lerna-monorepo/)**.