aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Stacey <markjstacey@gmail.com>2019-07-02 08:26:24 +0800
committerGitHub <noreply@github.com>2019-07-02 08:26:24 +0800
commit9fd8a3d46e2f3320f7eacc654e56f9466196b728 (patch)
tree2522a531f87f071cffba9c2644e991da2ccf04db
parent448720327b45470af4ee62ae0ad5649df5a6d8b4 (diff)
downloadtangerine-wallet-browser-9fd8a3d46e2f3320f7eacc654e56f9466196b728.tar.gz
tangerine-wallet-browser-9fd8a3d46e2f3320f7eacc654e56f9466196b728.tar.zst
tangerine-wallet-browser-9fd8a3d46e2f3320f7eacc654e56f9466196b728.zip
Move Browserify transforms to gulpfile (#6768)
The flat tests also rely upon these transformations, yet invoke browserify from the command line rather than using the gulpfile. The transformations have been specified on the command line for those instead. Of course it's not ideal to have the same transformations listed in two different places, but the plan is to delete the flat tests soon anyway, so this should suffice until then. Closes #4538
-rw-r--r--gulpfile.js2
-rw-r--r--package.json8
2 files changed, 3 insertions, 7 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 6ea02c52c..40f93f45c 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -501,6 +501,8 @@ function generateBundler (opts, performBundle) {
}
let bundler = browserify(browserifyOpts)
+ .transform('babelify')
+ .transform('brfs')
if (opts.buildLib) {
bundler = bundler.require(opts.dependenciesToBundle)
diff --git a/package.json b/package.json
index af4c83af5..66965c808 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
"test:flat:build:tests": "node test/integration/index.js",
"test:flat:build:states": "node development/genStates.js",
"test:flat:build:locales": "mkdirp dist/chrome && cp -R app/_locales dist/chrome/_locales",
- "test:flat:build:ui": "npm run test:flat:build:states && browserify ./development/mock-dev.js -o ./development/bundle.js",
+ "test:flat:build:ui": "npm run test:flat:build:states && browserify --transform babelify --transform brfs ./development/mock-dev.js -o ./development/bundle.js",
"ganache:start": "ganache-cli --noVMErrorsOnRPCResponse -i 5777 -m 'phrase upgrade clock rough situate wedding elder clever doctor stamp excess tent'",
"sentry:publish": "node ./development/sentry-publish.js",
"lint": "eslint .",
@@ -45,12 +45,6 @@
"update-changelog": "./development/auto-changelog.sh",
"rollback": "./development/rollback.sh"
},
- "browserify": {
- "transform": [
- "babelify",
- "brfs"
- ]
- },
"dependencies": {
"@material-ui/core": "1.0.0",
"@sentry/browser": "^4.1.1",