Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Latest commit

 

History

History
58 lines (40 loc) · 1.58 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.58 KB

lerna-tools

Set of tools to manage a Lerna repository 🐉

Build Status version MIT License

npm install lerna-tools

Usage

This set of tools gives you command to build (using Babel) and watch all your packages. It is opinionated and not yet configurable:

  • Packages must be located in <rootDir>/packages
  • Source files must be located in <rootDir>/packages/<package>/src
  • Build files must be located in <rootDir>/packages/<package>/lib
  • Babel config must be located in <rootDir>/.babelrc
  • You must run lerna-watch and lerna-build in the root of your project

Watch All packages

$ lerna-watch

-> Watching for changes...

-> change: a.js
  • a/src/a.js ⇒ a/lib/a.js

Build all packages

$ lerna-build

Building packages
h2x-core..................................................... DONE
h2x-jsx...................................................... DONE

Inspiration

Inspired from Jest scripts.

License

MIT