Typescript/Javascript Dewy SDK
Installing
- Install the library
npm install dewy-ts
- Connect to a Dewy instance
import { Dewy } from 'dewy-ts';
const dewy = new Dewy({endpoint: “localhost:3000”})
For more information about how to use Dewy, see the README in the main repo.
Cutting a new release
Setup development environment
npm installRun the Dewy service
docker run dewykb/dewyRegenerate the client library
rm -rf src/client openapi --name Dewy -c fetch --input ../dewy/openapi.yaml --output ./src/client --useUnionTypesRecompile Typescript
rm -rf dist && npx tscPublish to npm (You probably want to bump the version number in
package.jsonfirst)npm publish --access public