1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00
Commit Graph

149 Commits

Author SHA1 Message Date
Mark Stacey
20d79cf46e
Add bot command to update LavaMoat policies (#19675)
A bot command has been added that can update LavaMoat policies
automatically. This helps contributors without a Linux machine to
produce policy files that match exactly what CI expects.

The README has been updated with instructions for this new workflow.
2023-06-21 09:17:30 -02:30
Erik Nilsson
d7301fb811
Update README.md (#19350)
Clarify that `.metamaskrc` doesn't exist before you create it
2023-05-31 10:49:17 -05:00
Matthew Walsh
ff20873c65
Add documentation for creating new confirmations (#18317) 2023-03-29 16:01:05 +01:00
Dan J Miller
dff152d728
Update README.md (#17978)
* Update README.md

* Update readme
2023-03-03 17:04:25 -03:30
Pedro Figueiredo
26f6ae4c7c
Add testing documentation (#17411)
* Add testing documentation

* Implement diff filtering by regex

* change to relative import
2023-02-09 17:08:48 +00:00
Ariella Vu
0349c6ba16
[doc] add Jest debugging guide (docs/tests/jest.md) (#17594)
* docs: add tests/jest.md debugging guide

* docs:jest.md: add basic test command

* README.md: add docs/tests/jest.md link
2023-02-06 20:03:22 +07:00
Mark Stacey
5857b85225
Add e2e debugging logs (#16937)
A `debug` flag has been added to our e2e test runner scripts, enabling
e2e debug logs. When this flag is enabled, all driver interactions will
be logged to the console. This is extremely useful when debugging e2e
tests, because it lets you known how far the test had progressed before
failing.

This flag should work with all existing e2e test scripts, including
both `test:e2e:single` and all of the test commands that run entire
test suites.

The README has been updated to reference this flag in the section
regarding how to run a single e2e test. To ensure this wasn't totally
missed for the other scripts, I added a line suggesting that users use
`--help` to see all supported options.
2022-12-13 16:00:47 -03:30
Brad Decker
6d1170f06c
upgrade yarn to version 3 (#16232)
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: ricky <ricky.miller@gmail.com>
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: legobt <6wbvkn0j@anonaddy.me>
Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
2022-12-08 10:38:04 -06:00
Daniel Liu
4b08d2ecf8
docs: fix obsolete link of nvm in README.md (#16238)
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2022-11-10 08:25:37 -06:00
Zachary Belford
ef1c6fc959
Change readme for running e2e (#16386) 2022-11-07 12:22:47 -06:00
Brendan Kirby
9efdf87e86
Fix typo in README (#15950) 2022-09-23 09:17:42 -05:00
legobeat
ef9d5d117b
chore: Adjust trailing whitespace (#15636)
Co-authored-by: ryanml <ryanlanese@gmail.com>
2022-08-24 14:11:49 -05:00
Erik Marks
8210e3a812
Convert LavaMoat policy generation script to Yargs application (#15626)
This PR converts `generate-lavamoat-policies.sh` to `.js` using Yargs. This makes it easier to only generate policy files for a specific build type (using the `-t` flag), which is often useful during Flask development. In addition, the `lavamoat:background:auto` scripts are renamed, and the main readme is updated with some useful tips.

Note that `lavamoat:background:auto:dev` is removed and `lavamoat:background:auto` should be used during local development.
2022-08-18 16:09:26 -07:00
Taylor Monahan
b9c301abfd
Update readme with some more docs and visuals of codebase (#15577)
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-08-16 11:39:38 -05:00
ryanml
07a2544da2
Update Node.js version in README (#15281) 2022-07-18 17:24:23 -07:00
Makoto Inoue
fdd8646ce8
Support for ENS wildcard and offchain resolution (#14675) 2022-07-12 09:30:31 -05:00
Ariella Vu
20023ebb4f
README.md: add PASSWORD .metamaskrc instruction (#15004) 2022-06-22 15:48:11 -05:00
PeterYinusa
875a333084
Sentry documentation (#14788)
* Sentry documentation

* Update docs
2022-06-15 21:48:40 +01:00
Zachary Belford
1e64ef419b
Changed README dev build step to include npm start (#14808)
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-06-09 18:56:08 -07:00
seaona
f32a651ad4
E2e readme docs (#14434)
* Updated README with improvements

* Fix table spacing

* remove argument from flag

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Rephrased chrome version sentence

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-04-20 13:12:07 +02:00
PeterYinusa
273c1dedb7
Docs - segment metrics (#14435)
* expand docs for metrics

* link to docs

* link to docs

* remove obsolete docs

* fix broken link
2022-04-19 16:15:41 +01:00
Mark Stacey
84ef58145a
Update Redux DevTools README instructions (#13038)
The instructions in the README about how to use Redux DevTools with
MetaMask have been incorrect since #10687, which removed the dependency
`remotedev-server` that this integration requires.

The instructions have been updated to explain that this now must be
installed globally for Redux DevTools to work, and for the command
`yarn start:dev` to work.

Fixes #10770
2021-12-10 14:23:37 -03:30
Mark Stacey
af3bdbbfc9
Add yarn-deduplicate step to README (#13004)
The instructions for changing dependencies have been updated to include
the `yarn yarn-deduplicate` step. This command removes duplicate
dependencies in the lockfile where possible while keeping everything
in-range, and it's checked in CI in the `test-yarn-dedupe` job that was
added in #12737.
2021-12-07 14:01:55 -03:30
Dan J Miller
35bab1065b
remove hiring link from readme (#12798) 2021-11-26 14:54:10 -03:30
Erik Marks
d4c71b8683
Add per-build type LavaMoat policies (#12702)
This PR adds one LavaMoat background script policy or each build type. It also renames the build system policy directory from `node` to `build-system` to make its purpose more clear. Each build type has the original `policy-override.json` for `main` builds. The `.prettierignore` file has been updated to match the locations of the new auto-generated policy files.

We need to maintain separate policies for each build type because each type will produce different bundles with different internal and external modules.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-11-15 14:23:46 -08:00
ryanml
acf52f9be2
Removing unneeded build sections from README.md (#12414) 2021-10-20 06:17:54 -07:00
Mark Stacey
e4cf12674e
Simplify Mocha npm scripts (#12313)
The npm scripts used to run Mocha scripts have been greatly simplified.
As we transition more tests from Mocha to Jest it was becoming
increasingly difficult to update the CLI arguments to keep all of these
scripts working correctly. This reorganization should make that process
much simpler.

The base Mocha options are in `.mocharc.js` - all except for the target
tests to run. Those are still given via the CLI. There is a second
config file specifically for the `test:unit:lax` tests (i.e. the Mocha
tests that have no coverage requirements) because it requires a change
to the `ignored` configuration property. We can create an additional
configuration file for each test script we add that needs further
configuration changes.

The `test:unit:path` script used to be used to run Mocha tests at a
given path. Now that can be done using `yarn mocha` instead, so this
script has been removed.

The `yarn watch` command has been broken for some time now, so it has
been removed as well. Mocha tests can still be run with a file watcher
using `yarn mocha --watch <path>` or `yarn test:unit:mocha --watch`.

The README has been updated to remove references about the `watch`
command that was removed. I considered explaining the other test
scripts there as well, but they were difficult to explain I will
attempt to update the README after making further simplifications
instead.
2021-10-12 10:10:33 -02:30
Jyoti Puri
c9ce848f47
Fix case of password env variable (#12120) 2021-09-21 23:27:24 +05:30
Alois Klink
b7d5adcf5b
Change remote redux devtools url to redux devtools (#12151)
Fixes #12149.

Although remotedev.io was the official URL for https://github.com/zalmoxisus/remote-redux-devtools, it looks like a phishing/adult website has taken it over.

I've replaced the link with the homepage Redux Devtools Extension in the `redux-devtools` monorepo,
(same link as on the Chrome extension page)
since that has a link to install `remote-redux-devtools` if need be.
2021-09-17 12:41:55 -07:00
Erik Marks
413700afc7
Rationalize build system arguments (#12047)
This rationalizes how arguments are passed to and parsed by the build system. To accomplish this, everything that isn't an environment variable from `.metamaskrc` or our CI environment is now passed as an argument on the command line.

Of such arguments, the `entryTask` is still expected as a positional argument in the first position (i.e. `process.argv[2]`), but everything else must be passed as a named argument. We use `minimist` to parse the arguments, and set defaults to preserve existing behavior.

Arguments are parsed in a new function, `parseArgv`, in `development/build/index.js`. They are assigned to environment variables where convenient, and otherwise returned from `parseArgv` to be passed to other functions invoked in the same file.

This change is motivated by our previous inconsistent handling of arguments to the build system, which will grow increasingly problematic as the build system grows in complexity. (Which it will very shortly, as we introduce Flask builds.)

Miscellaneous changes:
- Adds a build system readme at `development/build/README.md`
- Removes the `beta` package script. Now, we can instead call: `yarn dist --build-type beta`
- Fixes the casing of some log messages and reorders some parameters in the build system
2021-09-09 12:44:57 -07:00
David Walsh
99d635afd1
Fix community links in README (#11289) 2021-06-15 11:23:43 -05:00
Mark Stacey
a17529c22c
Improve contributor documentation in README (#10509)
The contributor documentation in the README has been improved in
various ways:

* There is now a dedicated section for development builds under
  'Contributing', rather than this being under 'Building locally'
* Additional unit test and linting commands have been documented
* Instructions for running e2e tests have been added
* Instructions on how to handle dependency changes have been added,
  to accommodate recent changes relating to `allow-scripts` and
  `LavaMoat`.
2021-02-24 12:22:42 -03:30
Dan Finlay
88c50edad3
Update twitter handle (#10503)
Because we got `@metamask`!
2021-02-23 13:35:38 -03:30
kumavis
6a6b27a04d
"yarn setup" - the new way to install your deps (#10379)
* deps - run "yarn setup" to install deps

* doc - add "yarn setup" to local dev instructions
2021-02-05 12:11:45 -03:30
Adam Magan
143d0b316a
Update readme to node 14 (#10374)
Follows on from the work done to upgrade Node to version 14
https://github.com/MetaMask/metamask-extension/pull/9514
2021-02-04 15:02:17 -03:30
Dan Finlay
28078bf81c
Make hiring link a link on text (#10206)
To avoid repelling the neurotic JS developer.
2021-01-19 13:02:05 -03:30
Dan J Miller
9d224b72a7
Add hiring note to the README (#10190)
* Add hiring note to the README

* Update README.md

* Update README.md
2021-01-14 10:00:53 -03:30
Mark Stacey
76c4ebac26
Add links to Community Forum to README (#10152)
The Community Forum is now linked in the README. The sections for
general questions, feature requests, and developer questions are
directly linked as well, to help users discover that we want those type
of inquiries in the forum from now on instead of on GitHub.

Closes #3484
2021-01-06 19:01:15 -03:30
Brad Decker
8b24f624dd
add segment implementation of metametrics (#9382)
Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-09-14 12:04:05 -05:00
Mark Stacey
359cdf744e
Include replacement of Infura Project ID in setup (#9390)
The setup steps listed in the README now explicitly include replacing
the `INFURA_PROJECT_ID` value with your own personal project ID.
2020-09-10 14:29:32 -03:00
Whymarrh Whitby
e2dedaacdb
Use Infura v3 API (#9368)
* Use eth-json-rpc-infura@5.0.0
* Use Infura v3 API
* Add example .metamaskrc file
2020-09-10 13:46:00 -02:30
Whymarrh Whitby
7f6324b597
Remove badges from README (#9015) 2020-07-16 11:06:02 -02:30
Whymarrh Whitby
d1cc2cc245
Delete docs/porting_to_new_environment.md (#8704) 2020-05-29 16:23:33 -02:30
Whymarrh Whitby
ec08e5c029
Update README.md (#8393) 2020-04-23 13:30:14 -02:30
Whymarrh Whitby
c0d6121cd9
Browser tests (#8010) 2020-02-07 13:19:32 -03:30
Whymarrh Whitby
712f3eb637
Update README.md (#8005) 2020-02-06 18:42:22 -03:30
Whymarrh Whitby
f928b1f69f
Delete developing-on-deps.md (#8004) 2020-02-06 16:52:38 -03:30
Whymarrh Whitby
555443787b
Remove dead link to team page in README (#7946) 2020-01-29 22:05:47 -03:30
Mark Stacey
ffd24a2854
Remove JSDoc tools (#7897)
Our JSDoc documentation has not been updated in a very long time, and
we don't use JSDoc in enough places for the docs to have been
especially useful. The tools and scripts  used to generate and publish
these docs have been removed.

References to this documentation have also been removed from the
README.

Hopefully once the TypeScript migration has made substantial progress,
we can generate more useful documentation using something like TypeDoc.
2020-01-28 13:02:49 -04:00
Dan J Miller
22d66b3b2d Add mobile hiring note to README (#7865) 2020-01-19 21:45:49 -03:30