build_config
1.4.0, released 5 weeks ago by tools.dart.dev
Format definition and support for parsing build.yaml configuration.
What it does
Provides support for parsing and defining the configuration format used by build_runner in build.yaml files. It allows configuring build targets, builders, post-process builders, and global options.
AI-written summary of version 1.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are developing a build system tool or extension that needs to parse build.yaml files.
- You need to understand or implement build_runner configuration parsing in Dart.
Skip it when
- You are just writing a standard Flutter application and do not need to parse custom build configurations.
Strengths
- Direct support for build.yaml format parsing.
- Handles complex configurations like targets, global options, and post-process builders.
Weaknesses
- Niche utility specific to build_runner ecosystem.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 4
Add build_config to dependencies.
not documentedAlternatives
Packages that do the same job and could replace build_config.
- dart_mappable
JSON serialization and data classes generator supporting generics, inheritance, and customization.
89Compare - build
Package for authoring build_runner compatible code generators.
87Compare - copy_with_extension
Annotation for generating copyWith extensions code using copy_with_extension_gen.
87Compare - copy_with_extension_gen
Generate type‑safe copyWith extensions for annotated classes and record typedefs.
85Compare
Works with
Packages commonly used together with build_config: ones it builds on, ones built on it, and its own family.
- pubspec_parsebuild_config depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- json_annotationbuild_config depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- checked_yamlbuild_config depends on itProvides checkedYamlDecode to give detailed errors when decoding YAML with json_serializable.
- build_daemonSame familyDaemon for running Dart builds in the background
- panaSame familyProduce a report summarizing the health and quality of a Dart package
- build_web_compilersSame familyBuild_runner builder that compiles Dart to JavaScript or WebAssembly for web applications
- webdevSame familyA command-line tool for developing and deploying web applications with Dart.
- build_runnerBuilt on build_configA build system for Dart code generation and modular compilation.