2021-10-08 09:10:48 -07:00
|
|
|
# Short description for each builder
|
|
|
|
|
|
|
|
# - preparing_builder: Infers the type of inline Dart expressions in moor files.
|
|
|
|
# We create a `input.temp.dart` file containing the expressions so that they
|
|
|
|
# can be resolved.
|
|
|
|
# - moor_generator: The regular SharedPartBuilder for @UseMoor and @UseDao
|
|
|
|
# annotations
|
|
|
|
# - moor_generator_not_shared: Like moor_generator, but as a PartBuilder instead of
|
|
|
|
# a SharedPartBuilder. This builder is disabled by default, but users may choose
|
|
|
|
# to use it so that generated classes can be used by other builders.
|
|
|
|
# - moor_cleanup: Deletes the `.temp.dart` files generated by the `preparing_builder`.
|
|
|
|
|
|
|
|
builders:
|
|
|
|
preparing_builder:
|
|
|
|
import: "package:drift_dev/integrations/build.dart"
|
|
|
|
builder_factories: ["preparingBuilder"]
|
2021-10-10 13:01:59 -07:00
|
|
|
build_extensions:
|
|
|
|
".moor": [".temp.dart", ".dart_in_moor"]
|
|
|
|
".drift": [".temp.dart", ".dart_in_moor"]
|
2021-10-08 09:10:48 -07:00
|
|
|
build_to: cache
|
|
|
|
auto_apply: dependents
|
2021-10-08 13:40:58 -07:00
|
|
|
applies_builders: ["drift_dev|cleanup"]
|
2021-10-08 09:10:48 -07:00
|
|
|
|
2021-10-08 13:40:58 -07:00
|
|
|
drift_dev:
|
2021-10-08 09:10:48 -07:00
|
|
|
import: "package:drift_dev/integrations/build.dart"
|
|
|
|
builder_factories: ["moorBuilder"]
|
|
|
|
build_extensions: {".dart": [".moor.g.part"]}
|
|
|
|
auto_apply: dependents
|
|
|
|
build_to: cache
|
|
|
|
required_inputs: [".dart_in_moor"]
|
|
|
|
applies_builders: ["source_gen|combining_builder"]
|
|
|
|
|
2021-10-09 08:55:21 -07:00
|
|
|
not_shared:
|
2021-10-08 09:10:48 -07:00
|
|
|
import: "package:drift_dev/integrations/build.dart"
|
|
|
|
builder_factories: ["moorBuilderNotShared"]
|
2021-10-09 08:55:21 -07:00
|
|
|
build_extensions: {".dart": [".drift.dart"]}
|
2021-10-08 09:10:48 -07:00
|
|
|
build_to: source
|
|
|
|
auto_apply: none
|
|
|
|
required_inputs: [".dart_in_moor"]
|
|
|
|
|
|
|
|
post_process_builders:
|
2021-10-08 13:40:58 -07:00
|
|
|
cleanup:
|
2021-10-08 09:10:48 -07:00
|
|
|
import: "package:drift_dev/integrations/build.dart"
|
|
|
|
builder_factory: "moorCleanup"
|