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