Dart's build system for code generation and modular compilation
open sourceBSD-3-Clausefree
build_runner is the build system Dart and Flutter packages use for code generation: it runs builders that generate code for serialization, data classes, data binding, dependency injection and mocking, and compiles web apps modularly. dart run build_runner build generates once and watch regenerates as files change. The same repository holds the build package for writing your own builders, build_test for testing them, build_config for configuring them in build.yaml, and build_web_compilers for compiling Dart to JavaScript and WebAssembly. It's maintained by the Dart team at Google.
Problems it solves
- generate JSON serialization code for my Flutter models
- run code generators in a Dart project and regenerate when files change
- write my own code generator for Dart
- generate mocks for Dart tests
Features
- runs builders that generate Dart code
- build and watch modes
- build package for writing builders
- build_test for testing builders
- build.yaml configuration
- build_web_compilers for JavaScript and WebAssembly output
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
