Generate typesafe typescript and go clients, examples (#194)

This commit is contained in:
Janos Dobronszki
2021-09-09 13:28:12 +01:00
committed by GitHub
parent 5626af3a45
commit 528b1e1c69
28 changed files with 1806 additions and 191 deletions

17
cmd/clients/README.md Normal file
View File

@@ -0,0 +1,17 @@
# Client and example generation
To run the code generation, from the repo root issue:
```sh
go install ./cmd/clients; clients .
```
The generated clients will end up in `./clients`.
Take inspiration from the `.github/workflows/publish.yml` to see how to publish the NPM package.
# Typescript gotchas
There is some funkiness going on with the package names in the generator -