summaryrefslogtreecommitdiffstats
path: root/chromium/mojo/spy/run_ui_dev_server
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/mojo/spy/run_ui_dev_server')
-rwxr-xr-xchromium/mojo/spy/run_ui_dev_server22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/mojo/spy/run_ui_dev_server b/chromium/mojo/spy/run_ui_dev_server
new file mode 100755
index 00000000000..5dd294f0514
--- /dev/null
+++ b/chromium/mojo/spy/run_ui_dev_server
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# 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:]))