jsonModelBuilder
now uses SharedPartBuilder
, rather than
`PartBuilder`.
This commit is contained in:
parent
80f6f08a63
commit
1c0ba0771d
3 changed files with 6 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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(_) {
|
||||
|
|
Loading…
Reference in a new issue