aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-30 08:34:30 +0800
committerkumavis <aaron@kumavis.me>2018-03-30 08:34:30 +0800
commit7067f636274cc00254661bb28ae371c975664e3d (patch)
tree89f7326f51c02564870f63e867dabca9fdb7ea05
parentb49ad750dd87232553a72663af94bb2840c2f2ad (diff)
downloadtangerine-wallet-browser-7067f636274cc00254661bb28ae371c975664e3d.tar
tangerine-wallet-browser-7067f636274cc00254661bb28ae371c975664e3d.tar.gz
tangerine-wallet-browser-7067f636274cc00254661bb28ae371c975664e3d.tar.bz2
tangerine-wallet-browser-7067f636274cc00254661bb28ae371c975664e3d.tar.lz
tangerine-wallet-browser-7067f636274cc00254661bb28ae371c975664e3d.tar.xz
tangerine-wallet-browser-7067f636274cc00254661bb28ae371c975664e3d.tar.zst
tangerine-wallet-browser-7067f636274cc00254661bb28ae371c975664e3d.zip
build - dev - run js tasks in parallel and set watch flag
-rw-r--r--gulpfile.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index d6892cc7e..de3d5be11 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -254,6 +254,7 @@ function createTasksForBuildJsExtension({ buildJsFiles, taskPrefix, devMode, bun
sourceMapDir: devMode ? './' : '../sourcemaps',
minifyBuild: !devMode,
buildWithFullPaths: devMode,
+ watch: devMode,
}, bundleTaskOpts)
createTasksForBuildJs({ rootDir, taskPrefix, bundleTaskOpts, destinations, buildPhase1, buildPhase2 })
}
@@ -268,6 +269,7 @@ function createTasksForBuildJsMascara({ taskPrefix, devMode, bundleTaskOpts = {}
sourceMapDir: './',
minifyBuild: !devMode,
buildWithFullPaths: devMode,
+ watch: devMode,
}, bundleTaskOpts)
createTasksForBuildJs({ rootDir, taskPrefix, bundleTaskOpts, destinations, buildPhase1 })
}
@@ -277,7 +279,6 @@ function createTasksForBuildJs({ rootDir, taskPrefix, bundleTaskOpts, destinatio
const jsFiles = [].concat(buildPhase1, buildPhase2)
jsFiles.forEach((jsFile) => {
gulp.task(`${taskPrefix}:${jsFile}`, bundleTask(Object.assign({
- watch: false,
label: jsFile,
filename: `${jsFile}.js`,
filepath: `${rootDir}/${jsFile}.js`,
@@ -289,7 +290,7 @@ function createTasksForBuildJs({ rootDir, taskPrefix, bundleTaskOpts, destinatio
subtasks.push(gulp.parallel(buildPhase1.map(file => `${taskPrefix}:${file}`)))
if (buildPhase2.length) subtasks.push(gulp.parallel(buildPhase2.map(file => `${taskPrefix}:${file}`)))
- gulp.task(taskPrefix, gulp.series(subtasks))
+ gulp.task(taskPrefix, gulp.parallel(subtasks))
}
// disc bundle analyzer tasks
@@ -324,9 +325,9 @@ gulp.task('apply-prod-environment', function(done) {
gulp.task('dev',
gulp.series(
'build:scss',
- 'dev:js',
'copy',
gulp.parallel(
+ 'dev:js',
'watch:scss',
'copy:dev',
'dev:reload'