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

Unified Diff: pkg/polymer/lib/deploy.dart

Issue 23431010: Change in deploy.dart to make it easier to run in run.sh without running pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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: pkg/polymer/lib/deploy.dart
diff --git a/pkg/polymer/lib/deploy.dart b/pkg/polymer/lib/deploy.dart
index 5c8aeb740f6ebf8b6cb859f6e54fd3db70fb9a24..73051c4f46323890693a26071cec6b6ebc4c8496 100644
--- a/pkg/polymer/lib/deploy.dart
+++ b/pkg/polymer/lib/deploy.dart
@@ -40,6 +40,17 @@ main() {
*/
Future runForTest(String webDir, String outDir) {
_currentPackage = 'test';
+
+ // associate package dirs with their location in the repo:
+ _packageDirs = {'test' : '.'};
+ addPackages(String dir) {
Jennifer Messerly 2013/08/29 18:21:24 hmmm, not sure I understand this. For todomvc, th
Siggi Cherem (dart-lang) 2013/08/30 00:00:41 Currently this is only working for test/run.sh whi
+ for (var packageDir in new Directory(dir).listSync().map((d) => d.path)) {
+ _packageDirs[path.basename(packageDir)] = packageDir;
+ }
+ }
+ addPackages('..');
+ addPackages('../third_party');
+ addPackages('../../third_party/pkg');
return _run(webDir, outDir);
}

Powered by Google App Engine
This is Rietveld 408576698