Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # This is a configuration file for devtools (`mojo_run`, `mojo_test) running | 1 # This is a configuration file for devtools (`mojo_run`, `mojo_test) running |
| 2 # within a Mojo checkout. | 2 # within a Mojo checkout. |
| 3 | 3 |
| 4 # The content has to parse to a Python dictionary literal. Strings of the form | 4 # The content has to parse to a Python dictionary literal. Strings of the form |
| 5 # '@{ABC}' are aliases that will be substituted for their values before | 5 # '@{ABC}' are aliases that will be substituted for their values before |
| 6 # evaluation: | 6 # evaluation: |
| 7 # '@{BUILD_DIR}': path to the output directory | 7 # '@{BUILD_DIR}': path to the output directory |
| 8 | 8 |
| 9 { | 9 { |
| 10 # Each dev server will be configured as specified and mapped for the | 10 # Each dev server will be configured as specified and mapped for the |
| 11 # indicated host using --map-origin. | 11 # indicated host using --map-origin. |
| 12 'dev_servers': [ | 12 'dev_servers': [ |
| 13 { | 13 { |
| 14 'host': 'https://core.mojoapps.io/', | 14 'host': 'https://core.mojoapps.io/', |
| 15 # At this port the server will appear to the shell. That means actually | |
| 16 # running on this port when running a Linux shell and being forwarded from | |
| 17 # this port when running on Android. Using a fixed port enables caching | |
| 18 # server responses between shell runs. | |
| 19 'port': 31839, | |
|
tonyg
2015/08/25 13:29:15
We may as well make this match with one of the por
ppi
2015/08/25 14:59:59
Done.
| |
| 15 # First matching prefix will apply. Within the directiories specified for | 20 # First matching prefix will apply. Within the directiories specified for |
| 16 # a prefix, first location that contains the requested path will apply. | 21 # a prefix, first location that contains the requested path will apply. |
| 17 'mappings': [ | 22 'mappings': [ |
| 18 ('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']), | 23 ('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']), |
| 19 ('', [ | 24 ('', [ |
| 20 # We map two directiories, so that both exploded dart apps under | 25 # We map two directiories, so that both exploded dart apps under |
| 21 # checkout root and built apps in the build directory are available. | 26 # checkout root and built apps in the build directory are available. |
| 22 # For example, one could refer to the apps of either type using urls: | 27 # For example, one could refer to the apps of either type using urls: |
| 23 # - https://core.mojoapps.io/spinning_cube.mojo | 28 # - https://core.mojoapps.io/spinning_cube.mojo |
| 24 # - https://core.mojoapps.io/examples/dart/device_info/main.dart | 29 # - https://core.mojoapps.io/examples/dart/device_info/main.dart |
| 25 '@{BUILD_DIR}', | 30 '@{BUILD_DIR}', |
| 26 '.' | 31 '.' |
| 27 ]), | 32 ]), |
| 28 ], | 33 ], |
| 29 }, | 34 }, |
| 30 ], | 35 ], |
| 31 } | 36 } |
| OLD | NEW |