Socket
Book a DemoInstallSign in
Socket

@guardian/slot-machine-client

Package Overview
Dependencies
Maintainers
26
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/slot-machine-client

Client lib for Slot Machine

latest
Source
npmnpm
Version
0.2.7
Version published
Maintainers
26
Created
Source

@guardian/slot-machine-client

A basic (JS) client for Slot Machine. If you are reading this and don't know what Slot Machine is, this library is probably not useful for you.

Local dev

Watch for changes

$ yarn dev

Point a project to your local version of slot-machine-client

With yarn link you can develop against a locally checked out version of this client:

In your local checkout of slot-machine-client:

$ yarn link

And then in the project consuming the client:

$ yarn link "@guardian/slot-machine-client"

To revert back to using the published version of the package:

$ yarn unlink "@guardian/slot-machine-client"
$ yarn install --force

NOTE: Ensure you build this library before adding it locally to your project, by running yarn build.

Publishing

On your feature branch, increment the version in the package.json file. Once we hit version 1 we should use semver when doing this.

Once the feature branch is merged into master, run:

yarn publish

This will build and then publish to NPM.

You can then update the clients!

Note: you'll need to be part of the @guardian org on npm to do this.
Speak to a suitable person if you don't have access.

FAQs

Package last updated on 18 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts