Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

mongodb-js/hadron-react

Repository files navigation

hadron-react

Hadron React Components

Packages

Development

See Lerna for information on the module organisation and publishing.

Installation

npm install

This will bootstrap all the packages, install all their dependencies and link the local packages together so that local changes on one package will immediate reflect in the others.

Is also useful to have Lerna installed as a global module to run scoped tasks locally:

npm install --global lerna

NOTE: do not run npm install directly inside the packages since that will break the links that lerna maintain.

Testing

Run all the tests in all the packages.

npm run test

Eslint

Run checks on all packages in the repo - this also runs as a precommit hook.

npm run check

Releasing

After merging a PR you can run this from master:

npm run release

Lerna will take care of everything, bumping the version of the packages chaged from the last release.

NOTE: lerna keeps track of changes from latest release by creating a tag for each package and each release: hadron-react-utils@4.0.4, hadron-react-components@4.0.5, ...

License

Apache 2.0