DKron REST API client for JavaScript
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
});
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