Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: dart/runtime/bin/vmservice/client/build.dart

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/runtime/bin/net/zlib.gyp ('k') | dart/runtime/bin/vmservice/client/build_.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/vmservice/client/build.dart
===================================================================
--- dart/runtime/bin/vmservice/client/build.dart (revision 31530)
+++ dart/runtime/bin/vmservice/client/build.dart (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'package:polymer/builder.dart';
-import 'dart:io';
-import 'dart:async';
-
-main() {
- lint()
- .then((_) => deploy()).then(compileToJs);
-}
-
-String findDart2JS() {
- var dartPath = Platform.executable;
- var lastIndex = dartPath.lastIndexOf(Platform.pathSeparator);
- if (lastIndex != -1) {
- var binPath = dartPath.substring(0, lastIndex);
- return '$binPath${Platform.pathSeparator}dart2js';
- }
- return 'dart2js';
-}
-
-void runDart2JS(String input, String output) {
- var dart2js_path = findDart2JS();
- var result =
- Process.runSync(dart2js_path,
- [ '--minify', '-o', output, input], runInShell: true);
- print(result.stdout);
- print(result.stderr);
- if (result.exitCode != 0) {
- print("Running dart2js failed.");
- exit(result.exitCode);
- }
-}
-
-compileToJs(_) {
- print("Running dart2js");
- runDart2JS('out/web/index.html_bootstrap.dart',
- 'out/web/index.html_bootstrap.dart.js');
- runDart2JS('out/web/index_devtools.html_bootstrap.dart',
- 'out/web/index_devtools.html_bootstrap.dart.js');
- print("Done");
-}
« no previous file with comments | « dart/runtime/bin/net/zlib.gyp ('k') | dart/runtime/bin/vmservice/client/build_.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698