dart-code-generation
Installation
SKILL.md
Generating Dart Code with Build Runner
Contents
- Setup and Configuration
- Core Commands
- Version Control Policy
- Workflow: Continuous Development
- Workflow: Resolving Build Conflicts
- Examples
Setup and Configuration
Configure build_runner to handle code generation for packages utilizing the Dart build system (e.g., json_serializable, built_value_generator).
Add the required packages to your dev_dependencies in pubspec.yaml. Include build_test only if you are writing tests that depend on generated code.
Note: For web-specific development and serving, refer to the dart-web-development skill and use the webdev tool instead of build_runner serve.
Note: For testing strategies, refer to the dart-testing skill.