44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
builders:
|
|
angel_serialize:
|
|
# target: "angel_serialize_generator"
|
|
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:
|
|
# target: "angel_serialize_generator"
|
|
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/goat.dart"
|
|
- "test/models/game_pad_button.dart"
|
|
- "test/models/with_enum.dart"
|
|
_typescript_definition:
|
|
sources:
|
|
- "test/*.dart"
|
|
$default:
|
|
dependencies:
|
|
- ":_book"
|
|
sources:
|
|
- "bin/**"
|
|
- "lib/**"
|
|
- "web/**"
|
|
- "test/models/author.dart"
|
|
- "test/models/game_pad.dart"
|