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

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
« no previous file with comments | « pkg/observe/lib/observe_html.dart ('k') | pkg/polymer/lib/polymer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
+ 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);
}
« no previous file with comments | « pkg/observe/lib/observe_html.dart ('k') | pkg/polymer/lib/polymer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698