The Luvio Compiler package is the main code generator for API clients. It uses a two-phased approach to code generation.
- Parsing
- Code Generation
- We take the
ModelInfo
and we use it to inform generation of Typescript Api Clients. The code generator is designed to be somewhat composable, so the caller can decide which pieces of theModelInfo
they'd like to have generated by providing different "Source Writers" to the compiler. This is all coordinated by the LuvioRamlCompiler. - The main transformation from pieces of
ModelInfo
to the actual Typescript code happens in codegen.
- We take the