m3o-client-gen

command module
v0.0.0-...-1d231ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

README

m3o-client-gen

A collection of tools we use to generate clients and examples of our M3O services and it consists of:

Generator

To run the code generation, from the repo root issue:

go install

The general flow is that protos get turned to an openapi json and this generator takes both files (JSON and proto) and generates clients and/or examples for the specified target like go, typescript, dart, cli and shell clients.

To generate Go clients localy, clone the micro/services repo and run this command from the root.

m3o-client-gen go

similarly, to generate typescript, dart or shell:

m3o-client-gen ts
m3o-client-gen dart
m3o-client-gen shell

release-note

The purpose of this program is to fetch the latest commit metadata (sha, html_url and message) from the micro/services repo and output a release note that has the following format.

9ae89b Wordle API (#417)

ts-publish-setup

The purpose of this program is to setup/update the necessary files in order to publish m3o-js clients to npm. It travers through the src folder in the m3o/m3o-js repo to build an array of available services then use that to populate the 'files' field in the package.json. It also creates the .npmrc file which includes authToken for authentication purposes with npm. This program will be used mainly by m3o-publish-ts-action.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL