smooth-code / lerna-tools

Set of tools to manage a Lerna repository πŸ‰πŸ²

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Set of tools to manage a Lerna repository πŸ‰πŸ²

License:MIT License


Languages

Language:JavaScript 100.0%