Index: example/explainer/build_examples.dart |
diff --git a/example/explainer/build_examples.dart b/example/explainer/build_examples.dart |
index ed7da8cddf8d14cead3c5a780d47ab9a64e5f02f..0b80df40600acbae4dbe5e4b27ebbca312325812 100755 |
--- a/example/explainer/build_examples.dart |
+++ b/example/explainer/build_examples.dart |
@@ -57,18 +57,19 @@ void buildAll(List<String> inputs, output) { |
Future buildSingle(String input, String output) { |
var timer = startTime(); |
- dwc.run([input, output]); |
- stopTime(timer, 'dwc - compile $input'); |
+ return dwc.run([input, output]).chain((_) { |
+ stopTime(timer, 'dwc - compile $input'); |
- timer = startTime(); |
- var dartFile ='$output/${input}_bootstrap.dart'; |
- var res = Process.run('dart2js', ['-ppackages/', dartFile, '-o$dartFile.js']); |
- return res.transform((r) { |
- if (r.exitCode != 0) { |
- print(r.stdout); |
- print(r.stderr); |
- } |
- stopTime(timer, 'dart2js - compile ${input}_boostrap.dart'); |
+ timer = startTime(); |
+ var dartFile ='$output/_${input}_bootstrap.dart'; |
+ var res = Process.run('dart2js', ['-ppackages/', dartFile, '-o$dartFile.js']); |
+ return res.transform((r) { |
+ if (r.exitCode != 0) { |
+ print(r.stdout); |
+ print(r.stderr); |
+ } |
+ stopTime(timer, 'dart2js - compile ${input}_boostrap.dart'); |
+ }); |
}); |
} |