Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 932 Bytes

UPDATING.md

File metadata and controls

43 lines (26 loc) · 932 Bytes

How-To Update Bindings When gtfs-realtime.proto Changes

Regenerate the language binding source from gtfs-realtime.proto.

One-Time Setup

  1. Download and install Node.js (v10.15.2 LTS has been used)

Every time gtfs-realtime.proto changes

  1. Run npm install from the nodejs folder to install the protobuf package

  2. Regenerate the language binding source from gtfs-realtime.proto by running the following from the nodejs folder:

    npm run buildProto
    
  3. Add the license header back to the generated source file.

  4. Test the generated code:

    npm run test
    
  5. Update the version number in package.json.

Publishing a new release

Every release

Log in with your account on NPM that has permissions for https://www.npmjs.com/package/gtfs-realtime-bindings:

npm login

Publish the package to NPM:

npm publish