Set of tools to manage a Lerna repository ๐
npm install lerna-tools
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
andlerna-build
in 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