1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00
metamask-extension/development
Mark Stacey 4cdf251ea5
Add mock Segment server (#9783)
This mock Segment server can be used to test our extension metrics. It
will respond to all request with HTTP 200, and will print the requests
to the console. It also has parsing built-in for Segment request
payloads.

Right now only the event name is printed, but we can enhance this in
the future to print more event information. We can also enhance the
mock to be a more realistic representation of the API.

The extension has been modified to allow the Segment host to be
overwritten with the `SEGMENT_HOST` environment variable. This will
ensure that all Segment events are redirected to that host.

So for example, to create a dev build that uses this server, you could
set the `SEGMENT_WRITE_KEY` and `SEGMENT_LEGACY_WRITE_KEY` values to
any non-empty string, and set `SEGMENT_HOST` to
`http://localhost:9090`.

This was created originally to test PR #9768
2020-11-09 18:15:23 -03:30
..
build Add mock Segment server (#9783) 2020-11-09 18:15:23 -03:30
lib Add mock Segment server (#9783) 2020-11-09 18:15:23 -03:30
announcer.js
auto-changelog.sh
create-static-server.js
generate-migration.sh
gource-viz.sh
metamaskbot-build-announce.js
mock-3box.js
mock-segment.js Add mock Segment server (#9783) 2020-11-09 18:15:23 -03:30
README.md
require-react-devtools.js
run-ganache
sentry-publish.js
sentry-upload-artifacts.sh
shellcheck.sh
show-deps-install-scripts.js
source-map-explorer.sh
sourcemap-validator.js
static-server.js Add mock Segment server (#9783) 2020-11-09 18:15:23 -03:30
verify-locale-strings.js add shared transaction constants (#9459) 2020-11-03 16:57:51 -06:00

Development

Several files which are needed for developing on(!) MetaMask.

Usually each files contains information about its scope / usage.