Przemyslaw Pietrzkiewicz | 7b674fe | 2015-08-05 12:57:15 +0200 | [diff] [blame] | 1 | # 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 Pietrzkiewicz | b5a95ab | 2015-08-25 17:00:09 +0200 | [diff] [blame] | 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, |
Przemyslaw Pietrzkiewicz | 7b674fe | 2015-08-05 12:57:15 +0200 | [diff] [blame] | 20 | # 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 Pietrzkiewicz | 4f62d78 | 2015-08-05 16:22:05 +0200 | [diff] [blame] | 24 | ('', [ |
| 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 Pietrzkiewicz | 7b674fe | 2015-08-05 12:57:15 +0200 | [diff] [blame] | 33 | ], |
| 34 | }, |
| 35 | ], |
| 36 | } |