Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andyjessop/monorepo-starter-kit
A starter config for Lerna with Typescript, Rollup, ESLint, Jest, and Prettier
https://github.com/andyjessop/monorepo-starter-kit
Last synced: 8 days ago
JSON representation
A starter config for Lerna with Typescript, Rollup, ESLint, Jest, and Prettier
- Host: GitHub
- URL: https://github.com/andyjessop/monorepo-starter-kit
- Owner: andyjessop
- Created: 2020-12-18T15:40:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-19T14:50:52.000Z (almost 4 years ago)
- Last Synced: 2024-08-01T13:27:49.311Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 42
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monorepo Starter Kit
A starter kit that provides configuration for a multi-package monorepo with the following features:
- Packages bundled with Rollup
- TypeScript-friendly throughout
- ESLint (uses the `standard` config with a few extras)
- Jest for unit tests
- Prettier (opinionated code formatting)
- Individual package configs extend base configs## Installation
Clone the repo:
```bash
git clone [email protected]:andyjessop/lerna-rollup-typescript.git
```Install dependencies
```bash
cd lerna-rollup-typescript
npm i
```Get started by linking the packages:
```bash
./node_modules/.bin/lerna bootstrap --hoist
```Then you can run all builds/tests/lints from the root with:
```bash
./node_modules/.bin/lerna run build
./node_modules/.bin/lerna run lint
./node_modules/.bin/lerna run test
```Or run them from the roots of individual packages:
```bash
npm run build
npm run lint
npm run test
```There's not much else to write here. The rest is up to the docs at:
- [Lerna](https://github.com/lerna/lerna)
- [TypeScript](https://www.typescriptlang.org/)
- [ESLint](https://eslint.org/)
- [Jest](https://jestjs.io/)
- [Prettier](https://prettier.io/)