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

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

Issue 199633007: Switch to using pub build instead of custom build_.dart script (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « runtime/bin/vmservice/client/HACKING.txt ('k') | runtime/bin/vmservice/client/deploy.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/build_.dart
diff --git a/runtime/bin/vmservice/client/build_.dart b/runtime/bin/vmservice/client/build_.dart
deleted file mode 100644
index 58f306ff1c835236a8459303f27d03f1cc339763..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/client/build_.dart
+++ /dev/null
@@ -1,43 +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';
-
-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 | « runtime/bin/vmservice/client/HACKING.txt ('k') | runtime/bin/vmservice/client/deploy.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698