fixie-ai / fixie-sdk-js

Open source SDK to the Fixie platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fixie Javascript SDK

This is a monorepo providing a TypeScript / JavaScript SDK to the Fixie platform. It contains the following packages:

  • fixie: A NodeJS SDK and CLI.
  • fixie-web: A browser-based SDK.
  • fixie-common: A shared package containing code used by both the NodeJS and browser SDKs.

Full documentation is provided at https://fixie.ai/docs.

Development

This repository uses Yarn workspaces. To build and test the repo locally, run the following commands:

$ yarn
$ yarn build
$ yarn test

You can use yarn format to format the code using Prettier, and yarn lint to lint the code.

When adding new features to the SDK, you can test them locally using yalc.

The workflow is as follows:

  1. In the fixie-sdk-js project run yalc publish. This copies everything that would be published to npm.
  2. In the dependent project where you want to test the updates, run yalc add fixie. This copies the new version locally and adds it as a dependency in package.json.
  3. yalc remove fixie will remove it.

Publishing changes

Please submit a changeset file along with your PR, which is used to automatically bump package versions and publish to npm. To do this, run:

$ yarn changeset

at the root of this tree, and follow the instructions to select which packages should get a version bump. Then git commit the resulting changeset file.

You can then publish the changesets by running:

$ yarn changeset publish --tag unstable

at the top level.

About

Open source SDK to the Fixie platform.

License:MIT License


Languages

Language:TypeScript 76.5%Language:JavaScript 23.5%