aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-10-13 02:03:42 +0800
committerDan Finlay <dan@danfinlay.com>2017-10-13 02:03:42 +0800
commitd71f14cb678b48b8666e6835c025ff14193acbb3 (patch)
treef7ae0714e8844afb4e66fecc7093f759b838d0a0 /gulpfile.js
parentd0d082d70c1e256aeb70f90fcdc864aeca00aed4 (diff)
downloadtangerine-wallet-browser-d71f14cb678b48b8666e6835c025ff14193acbb3.tar
tangerine-wallet-browser-d71f14cb678b48b8666e6835c025ff14193acbb3.tar.gz
tangerine-wallet-browser-d71f14cb678b48b8666e6835c025ff14193acbb3.tar.bz2
tangerine-wallet-browser-d71f14cb678b48b8666e6835c025ff14193acbb3.tar.lz
tangerine-wallet-browser-d71f14cb678b48b8666e6835c025ff14193acbb3.tar.xz
tangerine-wallet-browser-d71f14cb678b48b8666e6835c025ff14193acbb3.tar.zst
tangerine-wallet-browser-d71f14cb678b48b8666e6835c025ff14193acbb3.zip
Increase build readability
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 6d2ff5fdd..9253949c7 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -186,8 +186,13 @@ jsFiles.forEach((jsFile) => {
gulp.task(`build:js:${jsFile}`, bundleTask({ watch: false, label: jsFile, filename: `${jsFile}.js` }))
})
-gulp.task('dev:js', gulp.series(jsDevStrings.shift(), gulp.parallel(...jsDevStrings)))
-gulp.task('build:js', gulp.series(jsBuildStrings.shift(), gulp.parallel(...jsBuildStrings)))
+// inpage must be built before all other scripts:
+const firstDevString = jsDevStrings.shift()
+gulp.task('dev:js', gulp.series(firstDevString, gulp.parallel(...jsDevStrings)))
+
+// inpage must be built before all other scripts:
+const firstBuildString = jsBuildStrings.shift()
+gulp.task('build:js', gulp.series(firstBuildString, gulp.parallel(...jsBuildStrings)))
// disc bundle analyzer tasks