blob: 1edace8eb31342e0df9b38142160c5ab499831c4 [file] [log] [blame]
Przemyslaw Pietrzkiewicz7b674fe2015-08-05 12:57:15 +02001# This is a configuration file for devtools (`mojo_run`, `mojo_test) running
2# within a Mojo checkout.
3
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
6# evaluation:
7# '@{BUILD_DIR}': path to the output directory
8
9{
10 # Each dev server will be configured as specified and mapped for the
11 # indicated host using --map-origin.
12 'dev_servers': [
13 {
14 'host': 'https://core.mojoapps.io/',
Przemyslaw Pietrzkiewiczb5a95ab2015-08-25 17:00:09 +020015 # 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,
Przemyslaw Pietrzkiewicz7b674fe2015-08-05 12:57:15 +020020 # First matching prefix will apply. Within the directiories specified for
21 # a prefix, first location that contains the requested path will apply.
22 'mappings': [
23 ('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']),
Przemyslaw Pietrzkiewicz4f62d782015-08-05 16:22:05 +020024 ('', [
25 # We map two directiories, so that both exploded dart apps under
26 # checkout root and built apps in the build directory are available.
27 # For example, one could refer to the apps of either type using urls:
28 # - https://core.mojoapps.io/spinning_cube.mojo
29 # - https://core.mojoapps.io/examples/dart/device_info/main.dart
30 '@{BUILD_DIR}',
31 '.'
32 ]),
Przemyslaw Pietrzkiewicz7b674fe2015-08-05 12:57:15 +020033 ],
34 },
35 ],
36}