DescriptionSupport dev servers defined in a mojoconfig file.
This patch allows one to define local servers to be set up by devtools
(`mojo_run` / `mojo_test`) in a config file. Each server is described as a
dictionary defining the host and the mappings:
{
'host': 'https://core.mojoapps.io/',
'mappings': [
('packages/', ['@{BUILD_DIR}/gen/dart-pkg/packages']),
('', ['@{BUILD_DIR}']),
],
},
This allows us to support running 'exploded' dart apps, see
https://github.com/domokit/devtools/issues/30 .
This patch also adds an example config file for the setup we will want to use
in the Mojo repo. As of this CL one has to explicitly pass --config-file
mojoconfig to make use of the config file. We will probably want to make
devtools discover this file automatically.
R=qsr@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/7b674fecee63ca43a90d32a3405eea5e2707883e
Patch Set 1 #
Total comments: 4
Patch Set 2 : Rebase. #Patch Set 3 : Address Ben's comments. #
Total comments: 4
Patch Set 4 : Address Ben's comments. #
Messages
Total messages: 7 (0 generated)
|