platform/angel_serialize_generator/build.yaml
2018-03-29 12:14:22 -04:00

44 lines
1.1 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: source
build_extensions:
.dart:
- ".g.dart"
- ".serializer.g.dart"
required_inputs:
- .dart
defaults:
generate_for:
- "lib/src/models/**.dart"
- "test/**.dart"
typescript_definition:
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"
required_inputs:
- .dart
defaults:
generate_for:
- "lib/src/models/**.dart"
- "test/**.dart"
targets:
_book:
sources:
- "test/models/book.dart"
$default:
dependencies:
- ":_book"
sources:
- "test/models/author.dart"