Example usage:
; // drone server and credentialsconst server = "https://drone.company.com";const token = "..."; // creates the drone clientconst client = server token; // fetches the repository listclient;
Configure the client from the window:
windowDRONE_SERVER = "https://drone.company.com";windowDRONE_TOKEN = "..."; const client = DroneClient;
Configure the client from the environment:
processenvDRONE_SERVER = "https://drone.company.com";processenvDRONE_TOKEN = "..."; const client = DroneClient;
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