ionic-package-polling
Polls Ionic.io native builds to trigger success or failed events
Last updated 4 years ago by mathieumaes .
ISC · Original npm · Tarball · package.json
$ cnpm install ionic-package-polling 
SYNC missed versions from official npm registry.

Ionic.io package polling

Ionic.io package is still in beta, and it currently does not support callbacks or hooks about status changes of your builds. This module will poll the build list and trigger events when a build is successful or fails.

Installation

$ npm install ionic-package-polling

Usage

Here is a basic example:

var Poll = require("ionic-package-polling");

var poll = new Poll({
    username: "email@domain.com",
    password: "yourpassword",
    appId: "yourAppId",
    interval: 10 // Optional: poll every x minutes, default is 3
});

poll.onSuccess(function(model) {
    console.log("build successful: " + model.id);
});

poll.onFail(function(model) {
    console.log("build failed: " + model.id);
});

poll.run(); // start polling

License

ISC License

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

3 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |