These packages provide libraries for generating, compiling and serving Dart code.
Defines the interfaces for creating a Builder which is a way of doing codegen that is compatible across build systems (pub, bazel, standalone runner).
For packages doing code generation this should generally be the only package against which there is a public dependency. Packages may have a dev_dependency on one or more of the other packages.
Support for parsing build.yaml files. Used by build_runner.
Support for discovering the sub-modules within packages and creating summaries of those modules. Used by build_web_compilers but should not be used directly by most users.
An implementation of the Resolver interface to use the analyzer during build steps.
Provides utilities to enact builds and a way to automatically run builds based on configuration.
This package should generally be a dev_dependency as it is used to run standalone builds. The only exception would be wrapping the build and watch methods with some other package.
Stub implementations for classes in Build and some utilities for running instances of builds and checking their outputs.
This package generally only be a dev_dependency as it introduces a dependency on package:test. The exception to that would be if you were creating another testing-only package that wraps this one.
Provides the dart2js and dartdevc support for your package. To use this package you should add it as a dev_dependency.
If you are using the automated build scripts, your project will automatically start being compiled with dartdevc, and you can start developing with chrome without any configuration.
Examples
The example directory has an example of a build with custom builders which generate outputs into both the source tree and a hidden generated directory. Try a build with dart run build_runner build -o web:deploy to see what the output looks like.
Most projects should not need custom builders.
Details Docs:
Getting started with build_runner
General FAQ
Windows FAQ
FAQ for Builder authors .
Additional Docs
Contribute to this package on GitHub
A build system for Dart written in Dart https://github.com/dart-lang/build 243 forks. 871 stars. 111 open issues. Recent commits: Prepare build_web_compilers for 4.9.0 release (#5266) , GitHub Bump the github-actions group with 3 updates (#5282)Bumps the github-actions group with 3 updates: [dart-lang/ecosystem/.github/workflows/health.yaml](https://github.com/dart-lang/ecosystem), [dart-lang/ecosystem/.github/workflows/post_summaries.yaml](https://github.com/dart-lang/ecosystem) and [dart-lang/setup-dart/.github/workflows/publish.yml](https://github.com/dart-lang/setup-dart).Updates `dart-lang/ecosystem/.github/workflows/health.yaml` from 27c2fc841818cce349e1f424af51cca9ea381f47 to 1d2b5ff862c6b93cd86dd06eadac4c9f4d5d6c20<details><summary>Commits</summary><ul><li><a href="https://github.com/dart-lang/ecosystem/commit/1d2b5ff862c6b93cd86dd06eadac4c9f4d5d6c20"><code>1d2b5ff</code></a> feat(repo_manage): add –replace-pattern to report changelog (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/482">#482</a>)</li><li><a href="https://github.com/dart-lang/ecosystem/commit/54e16739d9c15ef0b77e050242c16226ad9235f9"><code>54e1673</code></a> fix(firehose): resolve dartExecutable via package:cli_util (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/469">#469</a>)</li><li><a href="https://github.com/dart-lang/ecosystem/commit/d754065a8d0e5407d2483ddac1f8595ad148b9a8"><code>d754065</code></a> refactor(corpus): use path.join and seal closed type hierarchies (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/476">#476</a>)</li><li><a href="https://github.com/dart-lang/ecosystem/commit/f8faabf263f94a7a8508c5e57f1ff3752fa23915"><code>f8faabf</code></a> Bump the github-actions group with 2 updates (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/481">#481</a>)</li><li>See full diff in <a href="https://github.com/dart-lang/ecosystem/compare/27c2fc841818cce349e1f424af51cca9ea381f47…1d2b5ff862c6b93cd86dd06eadac4c9f4d5d6c20">compare view</a></li></ul></details><br />Updates `dart-lang/ecosystem/.github/workflows/post_summaries.yaml` from 27c2fc841818cce349e1f424af51cca9ea381f47 to 1d2b5ff862c6b93cd86dd06eadac4c9f4d5d6c20<details><summary>Commits</summary><ul><li><a href="https://github.com/dart-lang/ecosystem/commit/1d2b5ff862c6b93cd86dd06eadac4c9f4d5d6c20"><code>1d2b5ff</code></a> feat(repo_manage): add –replace-pattern to report changelog (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/482">#482</a>)</li><li><a href="https://github.com/dart-lang/ecosystem/commit/54e16739d9c15ef0b77e050242c16226ad9235f9"><code>54e1673</code></a> fix(firehose): resolve dartExecutable via package:cli_util (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/469">#469</a>)</li><li><a href="https://github.com/dart-lang/ecosystem/commit/d754065a8d0e5407d2483ddac1f8595ad148b9a8"><code>d754065</code></a> refactor(corpus): use path.join and seal closed type hierarchies (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/476">#476</a>)</li><li><a href="https://github.com/dart-lang/ecosystem/commit/f8faabf263f94a7a8508c5e57f1ff3752fa23915"><code>f8faabf</code></a> Bump the github-actions group with 2 updates (<a href="https://redirect.github.com/dart-lang/ecosystem/issues/481">#481</a>)</li><li>See full diff in <a href="https://github.com/dart-lang/ecosystem/compare/27c2fc841818cce349e1f424af51cca9ea381f47…1d2b5ff862c6b93cd86dd06eadac4c9f4d5d6c20">compare view</a></li></ul></details><br />Updates `dart-lang/setup-dart/.github/workflows/publish.yml` from a5bff6576dfc51b47eb77d4b7084bba6a4daf8d2 to 40657d0d0732d6fd3809f5841380e7519e355b50<details><summary>Changelog</summary><p><em>Sourced from <a href="https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md">dart-lang/setup-dart/.github/workflows/publish.yml's changelog</a>.</em></p><blockquote><h2>v1.8.3-wip</h2><ul><li>Support the <code>{package}</code> placeholder in <code>publish.yml</code>'s <code>working-directory</code> input, expanding <code><package></code> from <code><package>-v<version></code> release tags.</li></ul><h2>v1.8.2</h2><ul><li>Update <code>publish.yml</code> to a three-job workflow (<code>validate</code>, <code>package</code>, <code>publish</code>) supporting hermetic package archiving (<code>–to-archive</code> / <code>–from-archive</code>).</li><li>Add <code>sdk</code> input to <code>publish.yml</code> to support publishing packages that require a non-stable Dart SDK (e.g., <code>beta</code> or <code>dev</code>).</li><li>Fix registering the <code>dart analyze</code> problem matcher when setup-dart runs as a step of a composite action (<a href="https://redirect.github.com/dart-lang/setup-dart/issues/198">#198</a>[]).</li><li>Bump <code>undici</code> to <code>6.29.0</code> and <code>@vercel/ncc</code> to <code>0.45.0</code>.</li></ul><p><a href="https://redirect.github.com/dart-lang/setup-dart/issues/198">#198</a>: <a href="https://redirect.github.com/dart-lang/setup-dart/issues/198">dart-lang/setup-dart#198</a></p><h2>v1.8.1</h2><ul><li>Update workflows to pin <code>actions/checkout</code> to a commit SHA.</li><li>Harden workflow permissions to <code>contents: read</code>.</li><li>Update <code>publish.yml</code> reusable workflow to reference <code>setup-dart@v1.8.0</code> and latest <code>setup-flutter</code>.</li><li>Bump <code>undici</code> to <code>6.28.0</code> and <code>@vercel/ncc</code> to <code>0.44.1</code>.</li></ul><h2>v1.8.0</h2><ul><li>Add a problem matcher for <code>dart analyze</code> to automatically create inline annotations on GitHub pull requests.</li><li>Update <code>publish.yml</code> reusable workflow to reference <code>setup-dart@v1.7.2</code> (running on Node 24) (<a href="https://redirect.github.com/dart-lang/setup-dart/issues/188">#188</a>[]).</li><li>Update GitHub Action dependencies (<code>actions/checkout</code> v7).</li><li>Bump <code>undici</code> to <code>6.27.0</code> and update npm dependencies.</li></ul><p><a href="https://redirect.github.com/dart-lang/setup-dart/issues/188">#188</a>: <a href="https://redirect.github.com/dart-lang/setup-dart/issues/188">dart-lang/setup-dart#188</a></p><h2>v1.7.2</h2><ul><li>Update Node.js requirement to Node 24.</li><li>Fix open Dependabot alerts by bumping <code>undici</code> to <code>>=6.24.0</code>.</li><li>Update GitHub Action dependencies (<code>@actions/core</code>, <code>@actions/exec</code>, <code>@actions/tool-cache</code>, <code>@actions/http-client</code>).</li><li>Update workflow actions to their latest versions (<code>actions/checkout</code> v6, <code>setup-flutter</code>).</li></ul><h2>v1.7.1</h2><ul><li>Roll <code>undici</code> dependency to address <a href="https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975">CVE-2025-22150</a>.</li><li>Update to the latest npm dependencies.</li><li>Recompile the action using the new Dart / JavaScript interop.</li></ul><h2>v1.7.0</h2><ul><li><p>Install flutter sdk in publishing step, allowing Flutter packages to bepublished (<a href="https://redirect.github.com/dart-lang/setup-dart/issues/68">#68</a>[])</p><p><a href="https://redirect.github.com/dart-lang/setup-dart/issues/68">#68</a>: <a href="https://redirect.github.com/dart-lang/setup-dart/issues/68">dart-lang/setup-dart#68</a></p></li></ul></blockquote><p>… (truncated)</p></details><details><summary>Commits</summary><ul><li><a href="https://github.com/dart-lang/setup-dart/commit/40657d0d0732d6fd3809f5841380e7519e355b50"><code>40657d0</code></a> Support {package} placeholder in publish.yml working-directory (<a href="https://redirect.github.com/dart-lang/setup-dart/issues/207">#207</a>)</li><li><a href="https://github.com/dart-lang/setup-dart/commit/2286a0c042b44434fe26d292bbce8d34f7ec662b"><code>2286a0c</code></a> chore: prepare v1.8.2 release (<a href="https://redirect.github.com/dart-lang/setup-dart/issues/209">#209</a>)</li><li><a href="https://github.com/dart-lang/setup-dart/commit/50635496642c694dc437c2a630c1a2248537a596"><code>5063549</code></a> Find the problem matcher in setup-dart's own directory (<a href="https://redirect.github.com/dart-lang/setup-dart/issues/208">#208</a>)</li><li><a href="https://github.com/dart-lang/setup-dart/commit/a1d8526c926344e01ba48a7368788c05ac98cb29"><code>a1d8526</code></a> Add sdk input to publish.yml reusable workflow (<a href="https://redirect.github.com/dart-lang/setup-dart/issues/206">#206</a>)</li><li>See full diff in <a href="https://github.com/dart-lang/setup-dart/compare/a5bff6576dfc51b47eb77d4b7084bba6a4daf8d2…40657d0d0732d6fd3809f5841380e7519e355b50">compare view</a></li></ul></details><br />Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.—<details><summary>Dependabot commands and options</summary><br />You can trigger Dependabot actions by commenting on this PR:- `@dependabot rebase` will rebase this PR- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency- `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)- `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)- `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)- `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency- `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions</details> , GitHub Remove the markdown link check. (#5279) , GitHub Make shared parts readable via BuildStep and order adds_to_library builders before .dart readers. (#5260)* Make shared parts readable via BuildStep and order adds_to_library builders before .dart readers.* Address review comments. , GitHub Remove the expected pub publish warnings, so publish-ignore-warnings isn't needed. (#5271)built_value_test has no library named after the package; add one thatexports matcher.dart.build_test pins build_runner to one version because it uses internalbuild_runner API. Write the pin as a range that allows only that version,because pub warns about an exact version. , GitHub
Provides the list of the opensource Flutter apps collection with GitHub repository.