hb-internal-libs
v0.0.0
Published
Typescript library for HB projects
Readme
Huckleberry Labs Internal Libraries
Repository for packages comprised in the @hb-internal-libs namespace/scope.
It will provide a more convenient and improved consistency between libraries and projects.
Installation and Usage
To install all the libraries just run npm install at the root of the project
To install a specific library, simply add the high-level package, for example:
npm install @hb-internal-libs/ts-modelsDeveloping and Testing
Deploying a beta version
To deploy a beta version update the version number on the library's package.json, for example to publish a beta3 of version 0.0.5 on ts-models library:
packages/ts-models/package.json
{
"name": "@hb-internal-libs/ts-models",
"version": "0.0.5-beta3",
...Then for CICD to detect a non stable version the following need to be done:
- When all changes are ready, do a git commit.
- Create a git tag with
git tag release-v0.0.5-beta3where:release-is mandatory to CICD to detect the tag - Push the tag with
git push origin TAG_NAME
Now the library version can be installed in the other project.
First step is authentication with Artifact Registry (Artifact Registry Reader role needed) running the following command from library's directory:
npx google-artifactregistry-auth
And then library installation:
npm install @hb-internal-libs/[email protected]
