| Index: modules/angular2/src/transform/options.dart
|
| diff --git a/modules/angular2/src/transform/options.dart b/modules/angular2/src/transform/options.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eff18056798da2a025ea3b6c449c159b7262362d
|
| --- /dev/null
|
| +++ b/modules/angular2/src/transform/options.dart
|
| @@ -0,0 +1,17 @@
|
| +library angular2.transformer;
|
| +
|
| +import 'package:path/path.dart' as path;
|
| +
|
| +class TransformerOptions {
|
| + final String entryPoint;
|
| + final String newEntryPoint;
|
| + final String htmlEntryPoint;
|
| +
|
| + TransformerOptions(this.entryPoint, this.newEntryPoint, this.htmlEntryPoint);
|
| +
|
| + bool inSameTopLevelDir() {
|
| + var expectedDir = path.split(htmlEntryPoint)[0];
|
| + return (expectedDir == path.split(entryPoint)[0] &&
|
| + expectedDir == path.split(newEntryPoint)[0]);
|
| + }
|
| +}
|
|
|