@tytorobotics/flightstand-api
v3.0.2
Published
JavaScript gRPC client for Tyto Robotics Flight Stand Software.
Readme
Flight Stand JavaScript API
Install the package from npm:
npm install @tytorobotics/flightstand-apiUse the generated message and service modules through the package entry point:
const { messages, services } = require("@tytorobotics/flightstand-api");
const { credentials } = require("@grpc/grpc-js");
const client = new services.FlightStandClient(
"localhost:50051",
credentials.createInsecure(),
);
const request = new messages.GetCoreRequest();CI calculates and injects the shared release version into the npm tarball. Keep version in package.json at 0.0.0; it is a development placeholder and is never the published artifact version.
Regenerate
The generated stubs are created as CI artifacts and packaged for npm; they are not tracked in the repository. From the repository root on Windows, regenerate them locally with:
.\scripts\Generate-Stubs.ps1 -Languages JavaScriptFor a local npm tarball, run:
.\scripts\Build-JavaScriptPackage.ps1 -GeneratedJavaScriptDirectory .\build\generated\js