1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/development
Mark Stacey 1fd3dc9ecf
Switch from npm to yarn ()
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
..
states Lint .json files () 2019-07-15 11:03:22 -03:00
.jsdoc.json Remove unused AppVeyor configuration () 2019-07-12 12:42:36 -03:00
announcer.js eslint --fix . 2018-07-02 18:49:33 -04:00
auto-changelog.sh Improve auto changelog script () 2019-07-11 11:08:23 -03:00
backGroundConnectionModifiers.js Check for unused function arguments () 2019-05-08 15:51:33 -04:00
genStates.js Speed up genStates script by using built-in require fn 2018-11-20 14:04:50 -03:30
index.html development - fix ui dev 2017-09-29 11:50:24 -07:00
metamaskbot-build-announce.js Remove broken image walkthrough from metamaskbot comment 2019-03-29 12:39:43 -02:30
mock-dev.js Remove unused unlockAccountMessage callback () 2019-07-24 23:40:22 -03:00
README.md add READMEs to folders, re 2018-03-14 15:33:22 +02:00
require-react-devtools.js Add React and Redux DevTools () 2019-07-11 12:27:06 -02:30
rollback.sh Switch from npm to yarn () 2019-07-30 15:36:23 -03:00
run-ganache Replace deprecated shell-parallel with concurrently () 2019-07-09 14:09:31 -02:30
run-version-bump.js eslint --fix . 2018-07-02 18:49:33 -04:00
selector.js eslint --fix . 2018-07-02 18:49:33 -04:00
sentry-publish.js CI - Allow sourcemap uploads to sentry for empty version () 2018-10-10 10:24:25 -04:00
sourcemap-validator.js development - enhancement for sourcemap validator tool () 2019-03-11 09:55:43 -07:00
test.html tests - integration - get flat and mascara tests closer to compatible 2017-09-13 20:25:27 -07:00
verify-locale-strings.js development tools - fix i18n verify tool 2018-11-04 22:18:30 -05:00
version-bump.js Version 5.0.3 () 2018-11-20 08:34:14 -10:00

Development

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

Usually each files contains information about its scope / usage.