chapster-sdk

The campai sdk for browser, react-native and node backend

Usage no npm install needed!

<script type="module">
  import chapsterSdk from 'https://cdn.skypack.dev/chapster-sdk';
</script>

README

campai-sdk

The campai sdk for browser, react-native and node backend

Setup

Install Node dependencies

Run npm install from this directory.

Running the tests

To run the tests, provide CHAPSTER_ENV=development|trunk|production to set the correct environment to test against (usually development).

CHAPSTER_ENV=development npm test

which runs all the tests for browser, node and react-native.

Releasing a new version

Use npm version with one of {major,minor,patch} to make a new version of the sdk.

ie. npm version minor

When pushing to github include the flag --tags

ie. git push origin --tags

The next build in CI will publish to the npm registry.