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: sdk/lib/_internal/pub/lib/src/command/build.dart

Issue 301063002: First stab at "pub run" command. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
Index: sdk/lib/_internal/pub/lib/src/command/build.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/build.dart b/sdk/lib/_internal/pub/lib/src/command/build.dart
index ed16ac91de56fc0c5c1ae6bc5cd8b1170c79b247..8ed20ae426aae6393491003e384c0c9c4906cc56 100644
--- a/sdk/lib/_internal/pub/lib/src/command/build.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/build.dart
@@ -27,8 +27,6 @@ class BuildCommand extends BarbackCommand {
/// The path to the application's build output directory.
String get outputDirectory => commandOptions["output"];
- BarbackMode get defaultMode => BarbackMode.RELEASE;
-
List<String> get defaultSourceDirectories => ["web"];
/// The number of files that have been built and written to disc so far.
@@ -53,8 +51,8 @@ class BuildCommand extends BarbackCommand {
// Since this server will only be hit by the transformer loader and isn't
// user-facing, just use an IPv4 address to avoid a weird bug on the
// OS X buildbots.
- return AssetEnvironment.create(entrypoint, "127.0.0.1", 0, mode,
- WatcherType.NONE, useDart2JS: true)
+ return AssetEnvironment.create(entrypoint, mode, WatcherType.NONE,
+ useDart2JS: true)
.then((environment) {
// Show in-progress errors, but not results. Those get handled
// implicitly by getAllAssets().

Powered by Google App Engine
This is Rietveld 408576698