Packages on this repo are not dependent to each other, this monorepo exists only to simplify the development process, sharing all the development tools (webpack, babel, jest, eslint...) to all the packages
This repo uses Lerna, so every lerna commands are available.
Common cli command flags
Add --stream
flag to show a better formatted console output for every package process
Add a --scope [package.json name][]
flag to run the command only on the specified packages
$ lerna run start [--stream] [--scope name]
Or:
$ cd packages/PACKAGENAME
$ npm [yarn] run start
$ npm [yarn] run test:all
Or:
$ lerna run test [--stream] [--scope name]
Or:
$ cd packages/PACKAGENAME
$ npm [yarn] run test
Other test scripts:
lerna [npm - yarn] run test:watch
(watch files and rerun tests on file change)lerna [npm - yarn] run test:open
(run the tests and open the html coverage results)lerna [npm - yarn] run test:coveralls
(run the tests and send the coverage results to Coveralls)
$ npm [yarn] run lint:all
Or:
$ lerna run lint [--stream] [--scope name]
Or:
$ cd packages/PACKAGENAME
$ npm [yarn] run lint
$ npm [yarn] run build:all
Or:
$ lerna run build [--stream] [--scope name]
Or:
$ cd packages/PACKAGENAME
$ npm [yarn] run build
$ npm [yarn] run doc:all
Or:
$ lerna run doc [--stream] [--scope name]
Or:
$ cd packages/PACKAGENAME
$ npm [yarn] run doc
$ npm [yarn] run doc:latest:all
Or:
$ lerna run doc:latest [--stream] [--scope name]
Or:
$ cd packages/PACKAGENAME
$ npm [yarn] run doc:latest
$ lerna publish
This will check all packages finding the ones with unpublished changes, asks for the new version and publish it (triggers the npm pre hooks)