npm.io
1.0.18 • Published 1 year ago

@anyalt/sdk

Licence
ISC
Version
1.0.18
Deps
7
Size
1.9 MB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

anyalt-sdk

TODO

SDK Build Guide

This SDK can be built for three different environments:

Environment API URL
Local http://localhost:8080
Dev https://engine.dev.anyalt.finance/
Prod https://engine.prod.anyalt.finance/

Building

# Local development
pnpm build:local

# Dev/staging
pnpm build:dev

# Production
pnpm build

Using with the Widget (local development)

# 1. Build the SDK
pnpm build:local

# 2. Create a package
pnpm pack

# 3. Go to Widget and install
cd ../widget
pnpm install ../sdk/anyalt-sdk- (press tab to autocomplete)

Publishing

# Publish dev version (adds -dev suffix)
pnpm release:dev

# Publish prod version
pnpm release:prod

Dev versions are published with the dev tag, so you can install them with:

pnpm add your-package@dev

Note: You can't publish a dev version to production - the script prevents this.