The purpose of this library is the sharing of critical code between the Hylo Web and Mobile front-ends and the backend. A primary focus at this time is text handling to ensure consistency of storage and presentation across the apps.
- Edit code in
src/
and build usingyarn build
(oryarn start
to continuously build) yarn test
to run tests- To test changes in a project run
yarn link
in the root of this project, then in the root of the target project (e.g.hylo-evo
orHyloReactNative
) runyarn link hylo-shared
. Your changes should now be available within that project wherever you've imported this library.
- Run tests and make sure they're all passing:
yarn test
- Run
yarn build
- Commit changes and
git push
- Run
npm version <patch|minor|major>
.⚠️ patch versions should never have breaking changes from previous version - Run
git push --tags
to push the version tags to the origin - Run
npm publish
to publish this new version to the NPM registry. This should be published under thehylodevs
NPM account (see password manager for needed credentials) - Update dependency pinned version in all related projects