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

Unified Diff: mojoconfig

Issue 1259793008: Support dev servers defined in a mojoconfig file. (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
Index: mojoconfig
diff --git a/mojoconfig b/mojoconfig
new file mode 100644
index 0000000000000000000000000000000000000000..da7eac73841f9da5a464e3f0ed154791d2da38a4
--- /dev/null
+++ b/mojoconfig
@@ -0,0 +1,21 @@
+# This is a configuration file for devtools (`mojo_run`, `mojo_test) running
+# within a Mojo checkout.
+
+# The content has to parse to a Python dictionary literal. Strings of the form
+# '@{ABC}' are aliases that will be substituted for their values before
+# evaluation:
+# '@{BUILD_DIR}': path to the output directory
+
+{
+ # Each dev server will be configured as specified and mapped for the
+ # indicated host using --map-origin.
+ 'dev_servers': [
+ {
+ 'host': 'https://core.mojoapps.io/',
+ 'mappings': [
+ ('packages/', '@{BUILD_DIR}/gen/dart-pkg/packages'),
qsr 2015/08/04 14:06:45 As discussed, please use a dictionary for the targ
ppi 2015/08/04 16:04:51 Done (using a list of paths, not a dictionary, as
+ ('', '@{BUILD_DIR}'),
+ ],
+ },
+ ],
+}
« mojo/devtools/common/devtoolslib/shell_config.py ('K') | « mojo/devtools/common/mojo_test ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698