style(dart/transform): Do not format generated code by default

Formatting code requires time and memory during the build -- do not do
it unless explicitly requested via a parameter to the transformer.

Add an entry to the
[wiki](https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer)
describing the added parameter.
This commit is contained in:
Tim Blasi
2015-08-06 14:14:27 -07:00
parent 3db0ae1dac
commit 40a3cd2ab1
5 changed files with 45 additions and 17 deletions

View File

@ -14,7 +14,8 @@ main() {
var formatter = new DartFormatter();
var transform = new AngularTransformerGroup(new TransformerOptions(
['web/index.dart'],
reflectionEntryPoints: ['web/index.dart']));
reflectionEntryPoints: ['web/index.dart'],
formatCode: true));
class IntegrationTestConfig {
final String name;