Skip to content

Conversation

ERoydev
Copy link
Collaborator

@ERoydev ERoydev commented Sep 16, 2025

This pull request introduces comprehensive improvements to the Codama Dart renderer project, focusing on documentation, end-to-end (e2e) testing infrastructure, Dart code generation templates, and code quality tooling. The main changes include a new and detailed README.md, the addition of e2e testing scripts and Dart project setups, the introduction of Dart code generation templates using Nunjucks, and the setup of a TypeScript ESLint configuration.

Summary of most important changes:

Documentation:

  • Major rewrite and expansion of README.md to provide clear installation, usage, example code, directory structure, and limitations for the Codama Dart renderer. This greatly improves onboarding and user understanding.

End-to-End Testing Infrastructure:

  • Added e2e Dart project templates (pubspec.yaml) for multiple test projects (dummy, system, memo, meteora, anchor) to facilitate generated code validation. [1] [2] [3] [4] [5]
  • Introduced code generation scripts (generate.cjs, generate-anchor.cjs) for running codegen against specified projects, and a test.sh script to automate code generation and static analysis, reporting errors in a user-friendly way. [1] [2] [3]

Code Generation Templates:

  • Added Nunjucks templates for Dart code generation, including a main layout (layout.njk), macros for Dart code patterns (macros.njk), and account module exports (pages/accountsMod.njk). These templates enable structured and maintainable Dart code output from IDL files. [1] [2] [3]

Code Quality Tooling:

  • Introduced a TypeScript ESLint configuration (eslint.config.cjs) with sensible rules for code consistency and error prevention in the codebase.

…x value). Now there are separate functions for fixed and prefixed arrays.
@ERoydev ERoydev requested a review from failfmi September 16, 2025 09:24
@failfmi failfmi changed the base branch from main to fix/dart-numbers-borsh September 16, 2025 10:01
@failfmi failfmi changed the base branch from fix/dart-numbers-borsh to dev September 16, 2025 10:13
@ERoydev ERoydev marked this pull request as ready for review September 16, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant