/credibil-ui

npm packages for VC issuance and verification QR codes

Primary LanguageJavaScriptMIT LicenseMIT

credibil-ui

Managing packages with Lerna

https://lerna.js.org

lerna publish --conventional-commits --yes

Developing packages with npm link

Each package has a corresponding interactive test harness located in the /debug directory. The test harness can be used while developing the package to confirm behaviour and debug issues without the need to package and redeploy.

To use, simply navigate to the root directory of the appropriate test harness and run npm run dev. Linking is performed automatically using npm's worskspaces feature (the auth library also uses a dynamic linking script). Once running, any changes you make to the package should be reflected in the running test harness.

For example, when working on the package @credibil/core:

cd debug/core
npm run dev

Installing packages

From the GitHub docs:

You need an access token to publish, install, and delete packages.

Create a Personal Access Token (PAT) with read:packages permission. Then, create a .npmrc file in your home directory (or locally):

echo "@credibil:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=<GitHub PAT>" >> ~/.npmrc