platform/packages/serialize/serialize_generator/build.yaml
2024-10-12 18:45:27 -07:00

37 lines
1.1 KiB
YAML

builders:
angel_serialize:
import: "package:protevus_serialize_generator/protevus_serialize_generator.dart"
builder_factories:
- jsonModelBuilder
- serializerBuilder
auto_apply: root_package
build_to: cache
build_extensions:
.dart:
- ".protevus_serialize.g.part"
- ".protevus_serialize_serializer.g.part"
applies_builders: ["source_gen|combining_builder", "source_gen|part_cleanup"]
runs_before: ["protevus_orm_generator|protevus_orm"]
typescript:
import: "package:protevus_serialize_generator/protevus_serialize_generator.dart"
builder_factories:
- typescriptDefinitionBuilder
auto_apply: root_package
build_to: source
build_extensions:
.dart:
- ".d.ts"
# targets:
# _book:
# sources:
# - "test/models/book.dart"
# - "test/models/has_map.dart"
# - "test/models/goat.dart"
# - "test/models/game_pad_button.dart"
# - "test/models/with_enum.dart"
# $default:
# dependencies:
# - "protevus_serialize_generator:_book"
# sources:
# - "test/models/author.dart"
# - "test/models/game_pad.dart"