2018-03-02 21:23:00 +00:00
|
|
|
/*
|
2017-09-15 00:36:28 +00:00
|
|
|
import 'package:build_runner/build_runner.dart';
|
|
|
|
import 'package:source_gen/source_gen.dart';
|
|
|
|
import 'package:angel_serialize_generator/angel_serialize_generator.dart';
|
|
|
|
|
|
|
|
final List<BuildAction> actions = [
|
2018-02-28 00:59:43 +00:00
|
|
|
jsonModel(const ['test/models/book.dart']),
|
|
|
|
jsonModel(const ['test/models/author.dart']),
|
|
|
|
angelSerialize(const ['test/models/book.dart']),
|
|
|
|
angelSerialize(const ['test/models/author.dart']),
|
|
|
|
];
|
|
|
|
|
|
|
|
BuildAction jsonModel(List<String> inputs) {
|
|
|
|
return new BuildAction(
|
2017-12-07 07:08:32 +00:00
|
|
|
new PartBuilder([const JsonModelGenerator()]),
|
|
|
|
'angel_serialize_generator',
|
2018-02-28 00:59:43 +00:00
|
|
|
inputs: inputs,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
BuildAction angelSerialize(List<String> inputs) {
|
|
|
|
return new BuildAction(
|
|
|
|
new PartBuilder(
|
|
|
|
[const SerializerGenerator()],
|
|
|
|
generatedExtension: '.serializer.g.dart',
|
|
|
|
),
|
2017-12-07 07:08:32 +00:00
|
|
|
'angel_serialize_generator',
|
2018-02-28 00:59:43 +00:00
|
|
|
inputs: inputs,
|
|
|
|
);
|
|
|
|
}
|
2018-03-02 21:23:00 +00:00
|
|
|
|
|
|
|
*/
|