build_runner_hook 2.0.1
build_runner_hook: ^2.0.1 copied to clipboard
An analyzer plugin for automatically running build_runner
2.0.0 #
Added #
- Configuration support via
build_runner_hook.yamlfile. - Support for the
build_filteroption in the configuration, allowing users to specify exactly which files should be generated by the backgroundbuild_runnerprocess. - Package-scoped process ownership so multiple IDE or analyzer instances can safely work on the same package without killing each other's
build_runnerprocess. - A detached cleanup watchdog that removes orphaned package owners and stops
build_runnerwhen the last analyzer instance for a package exits.
Changed #
- Simplified the shared process tracking logic and renamed the core registry to
BuildRunnerTracker. - Removed over-abstracted wrapper functions, type aliases, and complex dependency injection in favor of a straightforward implementation.
- Cleanup state and logs are now stored per package under the plugin temp directory (
hook.logandbuild_runner.log) instead of using global files likebrh.logorcleanup.log. - Cleanup now runs through internal plugin code instead of requiring a package executable resolved from the user's project.
- Updated documentation and troubleshooting guides to reflect the new package-specific logging structure.
1.2.0 #
Added #
- Dart workspace support. When the plugin detects a workspace, it starts
build_runner watch --workspacefrom the workspace root. - A
build_runnerdependency check before startup. The plugin now skips startup and logs a helpful message whenbuild_runneris not available in the current analysis context. - Separate log files for plugin lifecycle events and
build_runnerprocess output to make troubleshooting easier.
Changed #
- Workspace and package detection now uses analyzer context information instead of relying only on raw filesystem paths.
1.1.0 #
Changed #
- Removed hardcoded
--delete-conflicting-outputsand--low-resources-modeflags from thebuild_runner watchcommand; the process now runs with default arguments only. - Updated installation instructions and removed the configuration section from README.
1.0.0 #
Added #
- Analyzer plugin that automatically starts
build_runner watchin the background. - Automatic process lifecycle management — starts on
partdirective detection, stops on analyzer shutdown. - Structured logging of all
build_runnerstdout and stderr output to a log file (build_runner_hook.login the system temp directory). --delete-conflicting-outputsand--low-resources-modeflags enabled by default.- Example project demonstrating usage with
dart_mappable.