aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2019-03-29 00:04:31 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-03-29 02:50:11 +0800
commit10097b6a1140d87aef0d8b982115dd6dba90dbe1 (patch)
tree05ddbfb06c437a447733054a66171f8a8191a546 /gulpfile.js
parenta44f2bb6ebe6979efc3c4711147b2420aa290e15 (diff)
downloadtangerine-wallet-browser-10097b6a1140d87aef0d8b982115dd6dba90dbe1.tar
tangerine-wallet-browser-10097b6a1140d87aef0d8b982115dd6dba90dbe1.tar.gz
tangerine-wallet-browser-10097b6a1140d87aef0d8b982115dd6dba90dbe1.tar.bz2
tangerine-wallet-browser-10097b6a1140d87aef0d8b982115dd6dba90dbe1.tar.lz
tangerine-wallet-browser-10097b6a1140d87aef0d8b982115dd6dba90dbe1.tar.xz
tangerine-wallet-browser-10097b6a1140d87aef0d8b982115dd6dba90dbe1.tar.zst
tangerine-wallet-browser-10097b6a1140d87aef0d8b982115dd6dba90dbe1.zip
Default to localhost network when running e2e tests
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index f4c9fc9dd..57d20c54a 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -311,6 +311,7 @@ const buildJsFiles = [
// bundle tasks
createTasksForBuildJsUIDeps({ dependenciesToBundle: uiDependenciesToBundle, filename: 'libs' })
createTasksForBuildJsExtension({ buildJsFiles, taskPrefix: 'dev:extension:js', devMode: true })
+createTasksForBuildJsExtension({ buildJsFiles, taskPrefix: 'dev:test-extension:js', devMode: true, testing: 'true' })
createTasksForBuildJsExtension({ buildJsFiles, taskPrefix: 'build:extension:js' })
function createTasksForBuildJsUIDeps ({ dependenciesToBundle, filename }) {
@@ -334,7 +335,7 @@ function createTasksForBuildJsUIDeps ({ dependenciesToBundle, filename }) {
}
-function createTasksForBuildJsExtension ({ buildJsFiles, taskPrefix, devMode, bundleTaskOpts = {} }) {
+function createTasksForBuildJsExtension ({ buildJsFiles, taskPrefix, devMode, testing, bundleTaskOpts = {} }) {
// inpage must be built before all other scripts:
const rootDir = './app/scripts'
const nonInpageFiles = buildJsFiles.filter(file => file !== 'inpage')
@@ -348,6 +349,7 @@ function createTasksForBuildJsExtension ({ buildJsFiles, taskPrefix, devMode, bu
buildWithFullPaths: devMode,
watch: devMode,
devMode,
+ testing,
}, bundleTaskOpts)
createTasksForBuildJs({ rootDir, taskPrefix, bundleTaskOpts, destinations, buildPhase1, buildPhase2 })
}
@@ -412,7 +414,7 @@ gulp.task('dev:test',
'clean',
'dev:scss',
gulp.parallel(
- 'dev:extension:js',
+ 'dev:test-extension:js',
'test:copy',
'dev:reload'
)
@@ -496,6 +498,7 @@ function generateBundler (opts, performBundle) {
bundler.transform(envify({
METAMASK_DEBUG: opts.devMode,
NODE_ENV: opts.devMode ? 'development' : 'production',
+ IN_TEST: opts.testing,
PUBNUB_SUB_KEY: process.env.PUBNUB_SUB_KEY || '',
PUBNUB_PUB_KEY: process.env.PUBNUB_PUB_KEY || '',
}), {