Index: mojo/spy/run_ui_dev_server |
diff --git a/mojo/spy/run_ui_dev_server b/mojo/spy/run_ui_dev_server |
new file mode 100755 |
index 0000000000000000000000000000000000000000..ec24c756b96570f64fd434d75ed8b7f2c08f4c71 |
--- /dev/null |
+++ b/mojo/spy/run_ui_dev_server |
@@ -0,0 +1,22 @@ |
+#!/usr/bin/env python |
+# Copyright (c) 2014 The Chromium Authors. All rights reserved. |
viettrungluu
2014/05/12 19:07:33
(Etc.) ... I'm on an OCD-driven mission to eradica
|
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+"""Starts the mojo spy dev server. |
+ |
+During normal usage of mojo spy, the spy files are compiled into standalone |
+HTML+JS+CSS snippets that are then embedded in the mojo shell. |
+ |
+The dev server allows edit-reload style development of the spy UI in isolation |
+of the c++ bits. To use, start the dev server, navigate to the URL the script |
+prints, and run any of the tests listed. Reloading in the browser loads the |
+latest content from disk, enabling a traditional web development workflow. |
+""" |
+import sys |
+ |
+from ui import dev_server |
+ |
+COMPONENTS_PORT = 8015 |
+ |
+if __name__ == '__main__': |
+ sys.exit(dev_server.Main(COMPONENTS_PORT, sys.argv[1:])) |