rename transformer options
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 443e179..265c2a7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,11 @@
-## 0.1.1-dev
+## 0.2.0-dev
-Added `htmlEntryPoint` option to the transformer. This will search that file for
-any script tag whose src is `entryPoint` and rewrite it to point at the
-bootstrapped file `newEntryPoint`.
+* `entryPoint` and `newEntryPoint` transformer options were renamed to
+`entry_point` and `new_entry_pont`.
+
+* Added `html_entry_point` option to the transformer. This will search that file
+for any script tag whose src is `entry_point` and rewrite it to point at the
+bootstrapped file `new_entry_point`.
## 0.1.0+1
diff --git a/lib/transformer.dart b/lib/transformer.dart
index 5cd7860..ce06839 100644
--- a/lib/transformer.dart
+++ b/lib/transformer.dart
@@ -64,12 +64,12 @@
});
factory InitializeTransformer.asPlugin(BarbackSettings settings) {
- var entryPoint = settings.configuration['entryPoint'];
- var newEntryPoint = settings.configuration['newEntryPoint'];
+ var entryPoint = settings.configuration['entry_point'];
+ var newEntryPoint = settings.configuration['new_entry_point'];
if (newEntryPoint == null) {
newEntryPoint = entryPoint.replaceFirst('.dart', '.bootstrap.dart');
}
- var htmlEntryPoint = settings.configuration['htmlEntryPoint'];
+ var htmlEntryPoint = settings.configuration['html_entry_point'];
return new InitializeTransformer(entryPoint, newEntryPoint, htmlEntryPoint);
}
diff --git a/pubspec.yaml b/pubspec.yaml
index a0350fd..af272fe 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: initialize
-version: 0.1.1-dev
+version: 0.2.0-dev
author: Polymer.dart Authors <web@dartlang.org>
description: Generic building blocks for doing static initialization.
homepage: https://github.com/dart-lang/initialize
@@ -17,18 +17,18 @@
$include: lib/initialize.dart
- initialize:
$include: test/initializer_test.dart
- entryPoint: test/initializer_test.dart
+ entry_point: test/initializer_test.dart
- initialize:
$include: test/initializer_cycle_error_test.dart
- entryPoint: test/initializer_cycle_error_test.dart
+ entry_point: test/initializer_cycle_error_test.dart
- initialize:
$include: test/initializer_custom_filter_test.dart
- entryPoint: test/initializer_custom_filter_test.dart
+ entry_point: test/initializer_custom_filter_test.dart
- initialize:
$include: test/initializer_type_filter_test.dart
- entryPoint: test/initializer_type_filter_test.dart
+ entry_point: test/initializer_type_filter_test.dart
- initialize:
$include: test/init_method_test.dart
- entryPoint: test/init_method_test.dart
+ entry_point: test/init_method_test.dart
- $dart2js:
$exclude: '**/*.dart'