platform/packages/serialize/angel_serialize_generator/build.yaml
Tobe O 42a86be549 Add 'packages/serialize/' from commit 'be6a3669cca34cd83d189a1169edf6f381101cd8'
git-subtree-dir: packages/serialize
git-subtree-mainline: f7c6ebf200
git-subtree-split: be6a3669cc
2020-02-15 18:22:00 -05:00

37 lines
1.1 KiB
YAML

builders:
angel_serialize:
import: "package:angel_serialize_generator/angel_serialize_generator.dart"
builder_factories:
- jsonModelBuilder
- serializerBuilder
auto_apply: root_package
build_to: cache
build_extensions:
.dart:
- ".angel_serialize.g.part"
- ".angel_serialize_serializer.g.part"
applies_builders: ["source_gen|combining_builder", "source_gen|part_cleanup"]
runs_before: ["angel_orm_generator|angel_orm"]
typescript:
import: "package:angel_serialize_generator/angel_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:
# - "angel_serialize_generator:_book"
# sources:
# - "test/models/author.dart"
# - "test/models/game_pad.dart"