Chromium Code Reviews| Index: tools/telemetry/run_components_dev_server |
| diff --git a/tools/telemetry/run_components_dev_server b/tools/telemetry/run_components_dev_server |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..ee70bfddf2040c206c25119b03fb1440c26303c4 |
| --- /dev/null |
| +++ b/tools/telemetry/run_components_dev_server |
| @@ -0,0 +1,23 @@ |
| +#!/usr/bin/env python |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
tonyg
2014/02/19 16:44:32
2014
|
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| +"""Starts the telemetry.components dev server. |
| + |
| +During normal usage of telemetry, telemetry.components files are |
| +compiled into standalone HTML+JS+CSS snippets that are then |
| +embedded in telemetry's various test resuls. |
| + |
| +The telemetry.components dev server allows edit-reload style development of |
| +these components. 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 telemetry.components import dev_server |
| + |
| +COMPONENTS_PORT = 8014 |
| + |
| +if __name__ == '__main__': |
| + sys.exit(dev_server.Main(COMPONENTS_PORT, sys.argv[1:])) |