dart_orpc_generator 0.1.0-dev.4 copy "dart_orpc_generator: ^0.1.0-dev.4" to clipboard
dart_orpc_generator: ^0.1.0-dev.4 copied to clipboard

build_runner generators for dart_orpc.

dart_orpc_generator #

Build-time generators for dart_orpc modules and DTO field references.

Most contributors should start with doc/architecture.md. It explains the generation flow, directory boundaries, and where each kind of change belongs.

Development #

From the workspace root:

dart test packages/dart_orpc_generator
dart analyze packages/dart_orpc_generator
dart format packages/dart_orpc_generator
dart run melos run test:generator:coverage

Generated module behavior is covered by test/rpc_module_generator_test.dart. Architectural boundaries are covered by test/generator_architecture_test.dart. The workspace coverage command enforces at least 90% generator line coverage.

Entry points #

  • lib/dart_orpc_generator.dart exposes the build-runner factories.
  • lib/src/rpc_module_generator.dart owns the module-generator library and lists its internal parts by architectural layer.
  • lib/src/rpc_dto_field_ref_generator.dart owns the smaller DTO field-reference generator.

The package intentionally keeps analyzer interaction behind the analysis stage and passes a resolved generation plan to emitters.

0
likes
0
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

build_runner generators for dart_orpc.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, dart_orpc_annotations, dart_orpc_core, luthor, source_gen

More

Packages that depend on dart_orpc_generator