Skip to content

jcam1/sdk-examples

Repository files navigation

sdk-examples

License: MIT

Code examples for JPYC Node SDKs

🌈 Available Code Examples

Please refer to READMEs of each SDK for the version specific details.

SDK Version README
v1 packages/v1

🔨 Development

Git Submodules

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

Yarn Workspaces

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

Yarn Scripts

To run yarn scripts defined in workspaces, run the following.

$ yarn workspace ${workspace_name} run ${command_name}

Dependencies

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}