Skip to content

craft-ai/most-utils

Repository files navigation

most utils

Build Coverage Status License

A collection of utilities for most.

Packages

Gather most js streams events into buffers.

Lossless rate limiter for most js.

Retrieve the nth event in a stream as a Promise.

Create ranges of integers as most js streams.

Developers

Local development & testing

These packages requires Node v6.9 or later and yarn.

The following commands can be run in the root directory or in any of the package's

  • Install dependencies:
    $ yarn install
  • Lint the code:
    $ yarn run lint
  • Run the tests:
    $ yarn run test

Releasing a new version (needs administrator rights)

  1. Make sure the build of the master branch is passing.
  2. Checkout the master branch locally.
$ git fetch
$ git checkout master
$ git reset --hard origin/master
  1. Increment the version of all packages and move Unreleased section of CHANGELOG.md to a newly created section for this version.
$ ./scripts/update_version.sh patch

./scripts/update_version.sh minor and ./scripts/update_version.sh major are also available - see semver for a guideline on when to use which.

This will create a git commit and a git tag.

  1. Push everything.
$ git push origin master --tags

This will trigger the publishing of this new version of the packages by travis.