This document is aimed at developers of this library. If you want to read the document for users, please, read this text instead.
- Make sure you have Node >= 18 installed. To check this, type
node -vin a terminal window. If you don't have it, follow the instructions here. - Make sure you have PNPM >= 8 installed. To check this, type
pnpm -vin a terminal window. If you don't have it, in a terminal window type:
corepack enable
corepack prepare pnpm@latest --activateIf the commands above don't work, please follow the instructions here.
- Clone the repository.
- In a terminal window, in the root directory, run:
pnpm iTo compile everything, you can just run:
pnpm compileYou can also compile the packages separately:
pnpm compile:sharedpnpm compile:backendpnpm compile:clientpnpm compile:react
The compiled files will be created at ./out, inside each package.
This project uses changesets. Please, use the guide provided by pnpm.
Attention: changesets currently has a weird behavior that bumps major versions of packages even if the user explicitly tells no to. This is being discussed here. While we can't opt out from this, please, always check the version of the package "react" before publishing.
Attention: run the script pre-publish, on the root directory, before publishing. This will compile the packages and copy important
files.
pnpm changesets
git add -A
git commit -m "changesets for {version}"
pnpm changesets version
git add -A
git commit -m "publishing {version}"
pnpm pre-publish
pnpm publish -r --access public- backend: library imported by the extension itself.
- client: library imported by the web application.
- react: utilities for web application created with React.
- shared: code shared between the backend and client.
Use the sample app to run and test the libraries.