Skip to content

A starter config for Lerna with Typescript, Rollup, ESLint, Jest, and Prettier

Notifications You must be signed in to change notification settings

andyjessop/monorepo-starter-kit

Repository files navigation

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:

git clone git@github.com:andyjessop/lerna-rollup-typescript.git

Install dependencies

cd lerna-rollup-typescript
npm i

Get started by linking the packages:

./node_modules/.bin/lerna bootstrap --hoist

Then you can run all builds/tests/lints from the root with:

./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:

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:

About

A starter config for Lerna with Typescript, Rollup, ESLint, Jest, and Prettier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published