config error

This commit is contained in:
Tobe O 2018-08-21 12:09:37 -04:00
parent 7c86e94c59
commit fe43fec98c
5 changed files with 28 additions and 3 deletions

View file

@ -7,4 +7,16 @@ builders:
.dart:
- .reflector.g.dart
auto_apply: root_package
build_to: source
build_to: source
required_inputs:
- .dart
targets:
$default:
sources:
- test/reflector.dart
builders:
angel_container_generator|angel_container:
generate_for:
- test/reflector.dart
- test/**.dart
- test/*.dart

View file

@ -1,7 +1,8 @@
import 'package:build/build.dart';
import 'package:source_gen/source_gen.dart';
import 'src/generator.dart';
Builder angelContainerBuilder(BuilderOptions builderOptions) {
Builder angelContainerBuilder(_) {
return new PartBuilder([new AngelContainerGenerator()], '.reflector.g.dart');
}

View file

@ -1,4 +1,5 @@
import 'package:analyzer/dart/element/element.dart';
import 'package:angel_container/angel_container.dart';
import 'package:code_builder/code_builder.dart';
import 'package:recase/recase.dart';

View file

@ -13,4 +13,5 @@ dependencies:
recase: ^2.0.0
source_gen: ^0.9.0
dev_dependencies:
build_runner: ^0.10.0
build_runner: ^0.10.0
test: ^1.0.0

View file

@ -0,0 +1,10 @@
@GenerateReflector(types: [Artist])
library angel_container_generator_test;
import 'package:angel_container/angel_container.dart';
class Artist {}
r() {
var r = new Artist();
}