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 ffb36f95ef
Fix yarn build styles:dev (#9709)
The `styles:dev` step of the development build was broken in #9568 when
the `lockdown()` function from SES was introduced. One of the effects
of `lockdown()` is preventing the use of `RegExp.lastMatch`, which is
relied upon by `postcss` for parsing inline sourcemaps.

This problem has been worked around by re-arranging the build pipeline
for styles.

Firstly, the `autoprefixer` stage was moved _before_ sourcemaps were
generated. Its placement _after_ sourcemaps was a mistake in the first
place - it should have always been before they were written, so that
the sourcemaps could keep track of the changes made by `autoprefixer`.

Second, the `-rtl` sourcemap generation was moved to a separate build
pipeline. The `rtl` stage also uses `postcss`, and it must come after
the sourcemaps are written for the non-RTL styles, so splitting it into
a separate build was the only way to avoid passing in inline
sourcemaps. This does make the build slightly slower, but it also
decreases the size of the RTL sourcemaps dramatically.
2020-10-25 16:25:24 -02:30
..
build Fix yarn build styles:dev (#9709) 2020-10-25 16:25:24 -02:30
announcer.js Build system refactor (#8140) 2020-03-09 08:55:02 +08:00
auto-changelog.sh Add shellcheck lint (#7392) 2019-11-19 10:46:10 -05:00
create-static-server.js Split createStaticServer from static-server.js (#8955) 2020-07-10 00:15:29 -03:00
generate-migration.sh Add tests around migration files (#7016) 2019-12-12 20:44:29 -03:30
gource-viz.sh dev - move gource instructions from docs to development script 2019-09-10 22:05:16 +08:00
metamaskbot-build-announce.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
mock-3box.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
README.md add READMEs to folders, re #3427 2018-03-14 15:33:22 +02:00
require-react-devtools.js Add React and Redux DevTools (#6793) 2019-07-11 12:27:06 -02:30
run-ganache Remove localhost provider type (#9551) 2020-10-12 12:05:40 -07:00
sentry-publish.js Fix import/order issues (#9239) 2020-08-18 16:48:25 -02:30
sentry-upload-artifacts.sh Improve Sentry publish script (#7417) 2019-12-05 17:59:48 -04:00
shellcheck.sh Add lint:shellcheck:package (#7568) 2019-12-11 15:52:08 -05:00
show-deps-install-scripts.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
source-map-explorer.sh ci - create source-map-explorer build-artifacts (#7141) 2019-09-11 23:35:30 +08:00
sourcemap-validator.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
static-server.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
verify-locale-strings.js Update @metamask/eslint-config to v4.1.0 (#9663) 2020-10-21 14:01:03 -02:30

Development

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

Usually each files contains information about its scope / usage.