jsonModelBuilder now uses SharedPartBuilder, rather than

`PartBuilder`.
This commit is contained in:
Tobe O 2018-08-21 17:19:48 -04:00
parent 80f6f08a63
commit 1c0ba0771d
3 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,8 @@
# 2.1.0
* Removed dependency on `package:id`.
* Update dependencies for Dart2Stable.
* `jsonModelBuilder` now uses `SharedPartBuilder`, rather than
`PartBuilder`.
# 2.0.10
* Generate `XFields.allFields` constant.

View file

@ -10,11 +10,12 @@ builders:
build_to: source
build_extensions:
.dart:
- ".g.dart"
- "angel_serialize.g.part"
- ".serializer.g.dart"
- ".d.ts"
required_inputs:
- .dart
applies_builders: ["source_gen|combining_builder"]
targets:
_book:
sources:

View file

@ -23,10 +23,8 @@ part 'serialize.dart';
part 'typescript.dart';
Builder jsonModelBuilder(_) {
return new PartBuilder(
const [const JsonModelGenerator()],
'.g.dart',
);
return new SharedPartBuilder(
const [const JsonModelGenerator()], 'angel_serialize');
}
Builder serializerBuilder(_) {