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

Unified Diff: mojoconfig

Issue 1272193003: Configure the dev server for exploded dart apps. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojoconfig
diff --git a/mojoconfig b/mojoconfig
index 62905319f9ef4431d0bd8b1cec294ea47f69112f..8be95fb8d2961869a835e526a8b7ea288980ab3b 100644
--- a/mojoconfig
+++ b/mojoconfig
@@ -16,7 +16,15 @@
# a prefix, first location that contains the requested path will apply.
'mappings': [
('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']),
- ('', ['@{BUILD_DIR}']),
+ ('', [
+ # We map two directiories, so that both exploded dart apps under
+ # checkout root and built apps in the build directory are available.
+ # For example, one could refer to the apps of either type using urls:
+ # - https://core.mojoapps.io/spinning_cube.mojo
+ # - https://core.mojoapps.io/examples/dart/device_info/main.dart
+ '@{BUILD_DIR}',
+ '.'
+ ]),
],
},
],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698