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.
This repository uses Yarn workspaces. To build and test the repo locally, run the following commands:
$ yarn
$ yarn build
$ yarn testYou 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:
- In the
fixie-sdk-jsproject runyalc publish. This copies everything that would be published to npm. - 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 inpackage.json. yalc remove fixiewill remove it.
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 changesetat 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 unstableat the top level.