1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test
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
..
data feature: add Goerli support (#6459) 2019-04-17 15:04:49 -02:30
e2e Switch from npm to yarn (#6843) 2019-07-30 15:36:23 -03:00
integration Move e2e tests out of beta dir (#6785) 2019-07-02 23:19:59 -02:30
lib Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
stub
unit Remove seedWords completely from metamask state (#6920) 2019-07-26 10:35:21 -03:00
web3 Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
base.conf.js
flat.conf.js
helper.js 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
setup.js Adds not yet functional gas price chart. 2018-12-04 00:06:05 -03:30