0.0.2 • Published 6 years ago

dkron-js-client v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

dkron-js-client

Build Status codecov

DKron REST API client for JavaScript

Usage

Node

Install with yarn add dkron-js-client or npm install --save dkron-js-client

const { createDkronClient } = require('dkron-js-client');

const config = { url: 'http://localhost:8080', version: 'v1' };
const dkronClient = createDkronClient(config);

dkronClient
  .createJob({ name: 'my-job', schedule: '* * * * *' })
  .then(createdJob => {
    // play with created job
  });

Release

The publishing is automated using Travis. However it is triggered on building a tag. Therefore you need to create a tag to be able to publish a new version in the npm registry.

To create a tag, run the following command

npm version -m 'release: v%s' patch|minor|major

Push all of our changes to Github:

git push origin master

This will start a build on Travis CI, but it will not publish.

To publish the package we have to push the git tag:

git push --tags

LICENSE

MIT

0.0.2

6 years ago

0.0.1

6 years ago