blob: 52ba05d0c09b067fda8d2aaf9f8754d0555db9d6 [file] [log] [blame]
[email protected]1215b5c12014-02-27 00:26:491#!/usr/bin/env python
2# Copyright (c) 2014 The Chromium Authors. All rights reserved.
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.web_components dev server.
6
7During normal usage of telemetry, telemetry.web_components files are
8compiled into standalone HTML+JS+CSS snippets that are then
9embedded in telemetry's various test resuls.
10
11The telemetry.web_components dev server allows edit-reload style development of
12these components. To use, start the dev server, navigate to the URL the script
13prints, and run any of the tests listed. Reloading in the browser loads the
14latest content from disk, enabling a traditional web development workflow.
15"""
16import sys
17
18from telemetry.web_components import dev_server
19
20COMPONENTS_PORT = 8014
21
22if __name__ == '__main__':
23 sys.exit(dev_server.Main(COMPONENTS_PORT, sys.argv[1:]))