Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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/)