lib-js-utils v1.0.0
Lib-js-utils
This repo holds a collection of different utilities in JS. All libraries should be published to npm so they can be depended upon. Most of the times they will be published as private repos and always under @geoblink namespace.
Lerna
The repository is organized following the guidelines of Lerna for monorepos. Among others this means:
All libraries should be located in $root/packages
If possible we share dev dependencies among libraries. That means that if only one repo depends on express
for the tests, we'll add it to package json. On the other hand, if most of the repos depend on mocha
then we install mocha as a root dependency.
Running tests.
Install root dependencies by
yarn install
Install all libraries dependencies by
yarn lerna bootstrap
Run tests:
yarn test
If you want to run tests for a particular repo you can instead do yarn lerna run test --scope @geoblink/redis-cache
Publishing changes
Once the changes have been approved and accepted in a pr, they can be published by doing: yarn lerna publish
. This will publish all packages with changes as well as upgrading the version and tagging in git.
4 years ago