feat(dart/transform): Allow multiple transformer entry points
- Allow the user to specify multiple entry points to an app. - Allow the Angular 2 transformer to run without explicit entry points to generate necessary setters & getters on built-in directives like `For` and `If`. Closes #1246
This commit is contained in:
@ -11,8 +11,8 @@ import '../common/read_file.dart';
|
||||
|
||||
var formatter = new DartFormatter();
|
||||
var transform = new AngularTransformerGroup(new TransformerOptions(
|
||||
'web/index.dart',
|
||||
reflectionEntryPoint: 'web/index.dart', modeName: TRANSFORM_MODE));
|
||||
['web/index.dart'],
|
||||
reflectionEntryPoints: ['web/index.dart'], modeName: TRANSFORM_MODE));
|
||||
|
||||
class IntegrationTestConfig {
|
||||
final String name;
|
||||
|
@ -3,12 +3,10 @@ library web_foo.ng_deps.dart;
|
||||
import 'index.dart';
|
||||
import 'package:angular2/src/core/application.dart';
|
||||
import 'package:angular2/src/reflection/reflection.dart';
|
||||
import 'package:angular2/src/reflection/reflection_capabilities.dart';
|
||||
import 'index.ng_deps.dart' as ngStaticInit0;
|
||||
import 'bar.dart';
|
||||
import 'bar.ng_deps.dart' as i0;
|
||||
import 'package:angular2/src/core/application.ng_deps.dart' as i1;
|
||||
import 'package:angular2/src/reflection/reflection_capabilities.ng_deps.dart'
|
||||
as i2;
|
||||
|
||||
bool _visited = false;
|
||||
void initReflector(reflector) {
|
||||
@ -16,5 +14,4 @@ void initReflector(reflector) {
|
||||
_visited = true;
|
||||
i0.initReflector(reflector);
|
||||
i1.initReflector(reflector);
|
||||
i2.initReflector(reflector);
|
||||
}
|
||||
|
Reference in New Issue
Block a user