1.0.0 • Published 6 years ago

lerna-tools v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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