0.6.0 • Published 4 months ago

@10planet/deva-sdk v0.6.0

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Deva SDK

Publishing

To publish a new version to npm:

  1. Create and push a version tag:

    git tag v1.0.0
    git push origin v1.0.0
  2. The GitHub workflow will automatically build and publish to npm

Note: Make sure the NPM_TOKEN secret is configured in the repository settings.

Development

The sdk functions on Client apps. You'll need to create a client app on deva.me. Make sure you fill in the redirect and origin uris.

Example app

There is a basic example app in example/. This is a plain react app that loads the sdk using pnpm links

You'll need to first create a example/.env file. Then add a client id for the app to it

VITE_DEVA_CLIENT_ID="f9dbe5bc-…"

You can create client's on deva.me settings.

To install the dependencies use pnpm run dev:install. This will install the packages for both sdk and the example app. Then you can start the dev process with:

pnpm run example:link # links the example app to the sdk in the root dir
pnpm run dev # runs the library builder on watch (required)
pnpm run dev:example # runs the dev server for the example app

You'll need the content server and deva.me running locally.