github-actions[bot] 7df406ee45 [1.x] Publish packages (#608) il y a 6 mois
..
src e9d56c993f Rename Kinobi to Codama (#234) il y a 1 an
test dbbdf9ec20 Use vitest as a test framework (#18) il y a 1 an
.gitignore 7f549a8464 Add renderers package (#14) il y a 1 an
.prettierignore bb2289e537 Make prettier ignore CHANGELOG.md files il y a 1 an
CHANGELOG.md 7df406ee45 [1.x] Publish packages (#608) il y a 6 mois
LICENSE e9d56c993f Rename Kinobi to Codama (#234) il y a 1 an
README.md 159c18856d Fix CI (#330) il y a 11 mois
package.json 7df406ee45 [1.x] Publish packages (#608) il y a 6 mois
tsconfig.declarations.json 7f549a8464 Add renderers package (#14) il y a 1 an
tsconfig.json e9d56c993f Rename Kinobi to Codama (#234) il y a 1 an

README.md

Codama ➤ Renderers

npm npm-downloads

This package re-exports all available renderers for Codama IDLs.

Installation

pnpm install @codama/renderers

[!NOTE] This package is not included in the main codama package.

Available renderers

The following renderer packages are included in this package:

  • @codama/renderers-js as renderJavaScriptVisitor
  • @codama/renderers-js-umi as renderJavaScriptUmiVisitor
  • @codama/renderers-rust as renderRustVisitor

    // node ./codama.mjs
    import { renderJavaScriptVisitor, renderJavaScriptUmiVisitor, renderRustVisitor } from '@codama/renderers';
    
    codama.accept(renderJavaScriptVisitor('clients/js/src/generated'));
    codama.accept(renderJavaScriptUmiVisitor('clients/js-umi/src/generated'));
    codama.accept(renderRustVisitor('clients/rust/src/generated'));