Set of tools to manage a Lerna repository π
npm install lerna-toolsThis 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-watchandlerna-buildin the root of your project
$ lerna-watch
-> Watching for changes...
-> change: a.js
β’ a/src/a.js β a/lib/a.js
$ lerna-build
Building packages
h2x-core..................................................... DONE
h2x-jsx...................................................... DONE
Inspired from Jest scripts.
MIT
