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

Unified Diff: mojo/tools/configs/sky

Issue 1268323003: Support running w/ Sky from a local checkout through a config file. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address Ben's comments. 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 | « mojo/tools/configs/README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/configs/sky
diff --git a/mojo/tools/configs/sky b/mojo/tools/configs/sky
new file mode 100644
index 0000000000000000000000000000000000000000..45b0120a7fdaa23def1237106e20dcc6ed8e447c
--- /dev/null
+++ b/mojo/tools/configs/sky
@@ -0,0 +1,47 @@
+# This is a configuration file one can use to run Sky apps from a local Sky
+# checkout using a locally built Mojo shell. As Sky is a layer on top of Mojo,
+# this file does not really belong in the Mojo repo and could hopefully move to
+# sky_engine.
+
+# To use this you need to check out sky_engine
+# (https://github.com/domokit/sky_engine ) and build for Android.
+
+# Then, run the lengthy command-line:
+#
+# mojo/devtools/common/mojo_run \
+# --android \
+# --config-file mojo/tools/configs/sky \
+# --config-alias SKY_SRC=/path_to_your_checkout/sky_engine/src \
+# "mojo:window_manager https://sky/examples/hello_world/lib/main.dart"
+
+# The sky apps are served from the Sky checkout, so all of
+# sky/packages/sky/example is available under https://sky/examples .
+
+{
+ 'dev_servers': [
+ {
+ 'host': 'https://sky/',
+ 'mappings': [
+ ('packages/', [
+ '@{SKY_SRC}/sky/packages/workbench/packages'
+ ]),
+ ('examples/', [
+ '@{SKY_SRC}/sky/packages/sky/example'
+ ]),
+ ('', [
+ '@{SKY_SRC}/out/android_Debug',
+ ]),
+ ],
+ },
+ {
+ 'host': 'https://core.mojoapps.io/',
+ 'mappings': [
+ ('', ['@{BUILD_DIR}']),
+ ],
+ },
+ ],
+
+ 'content_handlers': {
+ 'application/dart': 'https://sky/sky_viewer.mojo',
+ }
+}
« no previous file with comments | « mojo/tools/configs/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698