Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
tonyg
2014/02/19 16:44:32
2014
| |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 """Starts the telemetry.components dev server. | |
| 6 | |
| 7 During normal usage of telemetry, telemetry.components files are | |
| 8 compiled into standalone HTML+JS+CSS snippets that are then | |
| 9 embedded in telemetry's various test resuls. | |
| 10 | |
| 11 The telemetry.components dev server allows edit-reload style development of | |
| 12 these components. To use, start the dev server, navigate to the URL the script | |
| 13 prints, and run any of the tests listed. Reloading in the browser loads the | |
| 14 latest content from disk, enabling a traditional web development workflow. | |
| 15 """ | |
| 16 import sys | |
| 17 | |
| 18 from telemetry.components import dev_server | |
| 19 | |
| 20 COMPONENTS_PORT = 8014 | |
| 21 | |
| 22 if __name__ == '__main__': | |
| 23 sys.exit(dev_server.Main(COMPONENTS_PORT, sys.argv[1:])) | |
| OLD | NEW |