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

139 Commits

Author SHA1 Message Date
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
Antonio Savage
a8be9ae42b Fix link on root README.md (#7480) 2019-11-20 10:42:36 -04:00
Mark Stacey
c9317115fa
Add browser recommendation to README (#6941)
We have recently dropped support for certain older browsers, and we're
planning to have a larger conversation soon about which browsers to
support going forward. In preparation for this, it might be worth
recommending that users use the latest browser version.
2019-08-02 10:29:18 -02:30
Mark Stacey
1fd3dc9ecf
Switch from npm to yarn (#6843)
As a solution to the constant lockfile churn issues we've had with
`npm`, the project now uses `yarn` to manage dependencies.

The `package-lock.json` file has been replaced with `yarn.lock`, which
was created using `yarn import`. It should approximate the contents of
`package-lock.json` fairly well, though there may be some changes due to
deduplication. The codeowners file has been updated to reference this
new lockfile.

All documentation and npm scripts have been updated to reference `yarn`
rather than `npm`. Note that running scripts using `npm run` still works
fine, but it seemed better to switch those to `yarn` as well to avoid
confusion.

The `npm-audit` Bash script has been replaced with `yarn-audit`. The
output of `yarn audit` is a bit different than `npm audit` in that it
returns a bitmask to describe which severity issues were found. This
made it simpler to check the results directly from the Bash script, so
the associated `npm-audit-check.js` script was no longer required. The
output should be exactly the same, and the information is still sourced
from the same place (the npm registry).

The new `yarn-audit` script does have an external dependency: `jq`.
However, `jq` is already assumed to be present by another CI script, and
is present on all CI images we use. `jq` was not added to `package.json`
as a dependency because there is no official package on the npm
registry, just wrapper scripts. We don't need it anywhere exept on CI
anyway.

The section in `CONTRIBUTING` about how to develop inside the
`node_modules` folder was removed, as the advice was a bit dated, and
wasn't specific to this project anyway.
2019-07-30 15:36:23 -03:00
Mark O'Sullivan
aae57c259d Improve Redux DevTools documentation (#6917)
Follow up to https://github.com/MetaMask/metamask-extension/pull/6882
2019-07-25 20:06:13 -03:00
Mark Stacey
271e0ceb93
Improve the Redux DevTools documentation (#6882)
Update the README to include further instructions on how to setup the
Redux Remote DevTools in development.

Relates to #5620
2019-07-18 16:07:35 -03:00
Mark Stacey
b316dd1c40
Remove outdated development tools and documentation (#6845)
These files were referencing npm scripts that no longer existed. Notices
appear to no longer exist, and the `ui-dev.js` module is no longer
actively used.

The `mock-dev.js` module is still used for certain integration tests, so
I've just removed the reference to the non-existent script.
2019-07-15 14:24:37 -03:00
Whymarrh Whitby
830c801ec3
Add React and Redux DevTools (#6793)
* Add React and Redux DevTools

* Conditionally load react-devtools

* Add start:dev npm script to run the app with devtools

Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
2019-07-11 12:27:06 -02:30
Whymarrh Whitby
f0218bdbbb
Rename accountManager usages (#6790)
Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
2019-07-10 16:31:48 -02:30
Mark Stacey
9ed64568f4 Update to Node.js v10
The only package that needed to be updated was `sha3`. It has been
updated to v1.2.3, which is a maintenance release that supports up to
Node.js v12.
2019-06-27 11:46:13 -03:00
Mark Stacey
a1b46d4b62 Update README test instructions
Omit requiring mocha to be installed globally; this is not required
for any of the listed commands. Also update the `lint` command to use
the npm script, as the gulp command referenced doesn't exist.
2019-06-24 17:12:08 -03:00