Code examples for JPYC Node SDKs
Please refer to README
s of each SDK for the version specific details.
SDK Version | README |
---|---|
v1 |
packages/v1 |
This repo uses Git Submodules to be in sync with JPYCv2 repo.
To include submodules when cloning the repo, add --recursive
option like below.
$ git clone --recursive https://github.com/jcam1/sdk-examples.git
This repo uses Yarn Workspaces primarily as a monorepo management tool. Please refer to the inserted link for details.
Note
Please use Node v20.12.0
for this repo.
To install dependencies for all the workspaces, run the following.
# cd into this repo
$ cd sdk-examples
# Install dependencies
$ yarn
To run yarn scripts defined in workspaces, run the following.
$ yarn workspace ${workspace_name} run ${command_name}
To add dependencies, run one of the following. To prevent unexpected behaviors, always pin the exact versions of the dependencies to be installed.
# Add dependencies to the specified workspace
$ yarn workspace ${workspace_name} add -E ${dependencies}
# Add dev dependencies to the specified workspace
$ yarn workspace ${workspace_name} add -E -D ${dependencies}
# Add dev dependencies to the workspaces root
$ yarn add -E -D -W ${dependencies}
To remove dependencies, run one of the following.
# Remove dependencies from the specified workspace
$ yarn workspace ${workspace_name} remove ${dependencies}
# Remove dependencies from the workspaces root
$ yarn remove -W ${dependencies}