Skip to content

DewyKB/dewy-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript/Javascript Dewy SDK

Installing

  1. Install the library
npm install dewy-ts
  1. Connect to a Dewy instance
import { Dewy } from 'dewy-ts';
const dewy = new Dewy({endpoint: “http://localhost:3000”})

For more information about how to use Dewy, see the README in the main repo.

Cutting a new release

  1. Setup development environment

    npm install
  2. Run the Dewy service

    docker run dewykb/dewy
  3. Regenerate the client library

    rm -rf src/client
    openapi --name Dewy -c fetch --input ../dewy/openapi.yaml --output ./src/client --useUnionTypes
  4. Recompile Typescript

    rm -rf dist && npx tsc
  5. Publish to npm (You probably want to bump the version number in package.json first)

    npm publish --access public

About

Typescript client for Dewy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published