| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:polymer/builder.dart'; | 5 import 'package:polymer/builder.dart'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 import 'dart:async'; | |
| 8 | 7 |
| 9 main() { | 8 main() { |
| 10 lint() | 9 lint() |
| 11 .then((_) => deploy()).then(compileToJs); | 10 .then((_) => deploy()).then(compileToJs); |
| 12 } | 11 } |
| 13 | 12 |
| 14 String findDart2JS() { | 13 String findDart2JS() { |
| 15 var dartPath = Platform.executable; | 14 var dartPath = Platform.executable; |
| 16 var lastIndex = dartPath.lastIndexOf(Platform.pathSeparator); | 15 var lastIndex = dartPath.lastIndexOf(Platform.pathSeparator); |
| 17 if (lastIndex != -1) { | 16 if (lastIndex != -1) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 } | 34 } |
| 36 | 35 |
| 37 compileToJs(_) { | 36 compileToJs(_) { |
| 38 print("Running dart2js"); | 37 print("Running dart2js"); |
| 39 runDart2JS('out/web/index.html_bootstrap.dart', | 38 runDart2JS('out/web/index.html_bootstrap.dart', |
| 40 'out/web/index.html_bootstrap.dart.js'); | 39 'out/web/index.html_bootstrap.dart.js'); |
| 41 runDart2JS('out/web/index_devtools.html_bootstrap.dart', | 40 runDart2JS('out/web/index_devtools.html_bootstrap.dart', |
| 42 'out/web/index_devtools.html_bootstrap.dart.js'); | 41 'out/web/index_devtools.html_bootstrap.dart.js'); |
| 43 print("Done"); | 42 print("Done"); |
| 44 } | 43 } |
| OLD | NEW |