Skip to content

Configuring build runner #709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Kanyade opened this issue Feb 8, 2025 · 2 comments
Open

Configuring build runner #709

Kanyade opened this issue Feb 8, 2025 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Kanyade
Copy link

Kanyade commented Feb 8, 2025

Hey there,
I tried to limit the files scanned for code generation. Found no option in build.yaml.

Is this not supported or am I missing something?

Is there an existing issue?

  • Not an issue in itself.

Use case

  • Generating objectbox.g.dart

Proposed solution

  • Editing build.yaml can configure which files will be scanned, making build runner faster. E.g.:

Image

But this warns me that this is not a known Builder.

@Kanyade Kanyade added the enhancement New feature or request label Feb 8, 2025
@Kanyade
Copy link
Author

Kanyade commented Feb 8, 2025

When running the build runner with --verbose, found that it needs to be objectbox_generator:resolver.

Image

Perhaps this should have a section in README.md?

@greenrobot-team
Copy link
Member

greenrobot-team commented Feb 10, 2025

Thanks for reporting! The generator package is open source, so you can inspect its build.yaml to find out the names.

But I guess it would not hurt to add the names and some common use cases (like the above, but also how to handle conflicting builders, like #342) to its README or maybe the Advanced Setup page.

@greenrobot-team greenrobot-team added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants