drone-js

2.0.0-alpha.1 • Public • Published

Example usage:

import DroneClient from 'drone-js';
 
// drone server and credentials
const server = "https://drone.company.com";
const token = "...";
 
// creates the drone client
const client = new DroneClient(server, token);
 
// fetches the repository list
client.getRepoList().then((repos) => {
 
});

Configure the client from the window:

window.DRONE_SERVER = "https://drone.company.com";
window.DRONE_TOKEN = "...";
 
const client = DroneClient.fromWindow();

Configure the client from the environment:

process.env.DRONE_SERVER = "https://drone.company.com";
process.env.DRONE_TOKEN = "...";
 
const client = DroneClient.fromEnviron();

Package commands:

npm run lint   # lint the codebase 
npm run format # format the codebase 
npm run test   # runs the unit tests 
npm run build  # generate the bundle 

Dependencies (0)

    Dev Dependencies (18)

    Package Sidebar

    Install

    npm i drone-js

    Weekly Downloads

    2

    Version

    2.0.0-alpha.1

    License

    Apache-2.0

    Unpacked Size

    11.3 kB

    Total Files

    4

    Last publish

    Collaborators

    • bradrydzewski
    • d1wilko