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
|
# 2.1.0
|
||||||
* Removed dependency on `package:id`.
|
* Removed dependency on `package:id`.
|
||||||
* Update dependencies for Dart2Stable.
|
* Update dependencies for Dart2Stable.
|
||||||
|
* `jsonModelBuilder` now uses `SharedPartBuilder`, rather than
|
||||||
|
`PartBuilder`.
|
||||||
|
|
||||||
# 2.0.10
|
# 2.0.10
|
||||||
* Generate `XFields.allFields` constant.
|
* Generate `XFields.allFields` constant.
|
||||||
|
|
|
@ -10,11 +10,12 @@ builders:
|
||||||
build_to: source
|
build_to: source
|
||||||
build_extensions:
|
build_extensions:
|
||||||
.dart:
|
.dart:
|
||||||
- ".g.dart"
|
- "angel_serialize.g.part"
|
||||||
- ".serializer.g.dart"
|
- ".serializer.g.dart"
|
||||||
- ".d.ts"
|
- ".d.ts"
|
||||||
required_inputs:
|
required_inputs:
|
||||||
- .dart
|
- .dart
|
||||||
|
applies_builders: ["source_gen|combining_builder"]
|
||||||
targets:
|
targets:
|
||||||
_book:
|
_book:
|
||||||
sources:
|
sources:
|
||||||
|
|
|
@ -23,10 +23,8 @@ part 'serialize.dart';
|
||||||
part 'typescript.dart';
|
part 'typescript.dart';
|
||||||
|
|
||||||
Builder jsonModelBuilder(_) {
|
Builder jsonModelBuilder(_) {
|
||||||
return new PartBuilder(
|
return new SharedPartBuilder(
|
||||||
const [const JsonModelGenerator()],
|
const [const JsonModelGenerator()], 'angel_serialize');
|
||||||
'.g.dart',
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Builder serializerBuilder(_) {
|
Builder serializerBuilder(_) {
|
||||||
|
|
Loading…
Reference in a new issue