Skip to content

Instantly share code, notes, and snippets.

@tobytraylor
Created October 26, 2018 17:20
Show Gist options
  • Save tobytraylor/081e90ea7d628b794490c71089eebb40 to your computer and use it in GitHub Desktop.
Save tobytraylor/081e90ea7d628b794490c71089eebb40 to your computer and use it in GitHub Desktop.
.dart_tool build.dart where built_value_generator and the generator from built_redux do not work together
import 'package:build_runner/build_runner.dart' as _i1;
import 'package:built_redux/builder.dart' as _i2;
import 'package:built_value_generator/builder.dart' as _i3;
import 'package:source_gen/builder.dart' as _i4;
import 'package:build_config/build_config.dart' as _i5;
import 'dart:isolate' as _i6;
final _builders = <_i1.BuilderApplication>[
_i1.apply('built_redux|built_redux', [_i2.builtRedux],
_i1.toDependentsOf('built_redux'),
hideOutput: true, appliesBuilders: ['source_gen|combining_builder']),
_i1.apply('built_value_generator|built_value', [_i3.builtValue],
_i1.toDependentsOf('built_value_generator'),
hideOutput: true, appliesBuilders: ['source_gen|combining_builder']),
_i1.apply('source_gen|combining_builder', [_i4.combiningBuilder],
_i1.toNoneByDefault(),
hideOutput: false, appliesBuilders: ['source_gen|part_cleanup']),
_i1.applyPostProcess('source_gen|part_cleanup', _i4.partCleanup,
defaultGenerateFor: const _i5.InputSet())
];
main(List<String> args, [_i6.SendPort sendPort]) async {
var result = await _i1.run(args, _builders);
sendPort?.send(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment