Abstract CLI
Installation
npm install @elasticprojects/deskapi --save
Usage
const deskapi = require('@elasticprojects/deskapi');
const identity = {
token: "ABSTRACT_API_TOKEN",
email: "id@users.abstractapp.com",
name: "Jenny Tester",
username: "jenny"
}
deskapi.start('/MyStoreLocation', identity)
.then(() => {
deskapi.post(`/pull/${projectId}`, event => {
console.log(event);
});
});
deskapi.on('error', err => {
console.error(err);
});
Development
The javascript component lives in the npm
folder, cd inside and install as normal:
npm install
Publishing
New versions will be automatically published when pushed to CI.
$ npm version (major|minor|patch)
$ git push --follow-tags