@luvio/compiler
TypeScript icon, indicating that this package has built-in type declarations

0.154.17 • Public • Published

@luvio/compiler

Purpose

The Luvio Compiler package is the main code generator for API clients. It uses a two-phased approach to code generation.

  1. Parsing
    • We take a RAML file and parse it using AMF and our own custom annotations into an intermediate representation called ModelInfo;
  2. 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 the ModelInfo 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @luvio/compiler

Weekly Downloads

148

Version

0.154.17

License

MIT

Unpacked Size

1.59 MB

Total Files

724

Last publish

Collaborators

  • jrodriguezvelasco
  • erin.shaw
  • karthick-sh
  • dme722
  • scarrawaysf
  • kevinv11n
  • mikeburr
  • apapko
  • ethan.chan
  • ciaran.hannigan
  • lwc-admin