From 58806dbcca62bb957301caebfeda9636193283a5 Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 30 Nov 2026 01:15:11 +0300 Subject: [PATCH] build: name generated asset tasks --- gulpfile.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 5a22e2a..760440c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -70,7 +70,7 @@ let paths = { // Tasks const styles = parallel(...Object.entries(paths.styles.bundles).map(([name, items]) => { - return () => src(items) + const task = () => src(items) .pipe(replace( "{BUILD_TIME}", Math.floor(Date.now() / 1000) @@ -83,10 +83,12 @@ const styles = parallel(...Object.entries(paths.styles.bundles).map(([name, item append: true })) .pipe(dest(paths.styles.dest)); + task.displayName = name; + return task; })); const scripts = parallel(...Object.entries(paths.scripts.bundles).map(([name, items]) => { - return () => src(items) + const task = () => src(items) .pipe(replace( "{BUILD_TIME}", Math.floor(Date.now() / 1000) @@ -97,10 +99,12 @@ const scripts = parallel(...Object.entries(paths.scripts.bundles).map(([name, it append: true })) .pipe(dest(paths.scripts.dest)); + task.displayName = name; + return task; })); const jsonFiles = parallel(...paths.json.map((item) => { - return () => src(item.src) + const task = () => src(item.src) .pipe(replace( "{BUILD_TIME}", Math.floor(Date.now() / 1000) @@ -110,14 +114,18 @@ const jsonFiles = parallel(...paths.json.map((item) => { append: true })) .pipe(dest(item.dest)); + task.displayName = item.src; + return task; })); const staticFiles = parallel(...paths.static.map((item) => { - return () => src(item.src, { encoding: false }) + const task = () => src(item.src, { encoding: false }) .pipe(gzip({ append: true })) .pipe(dest(item.dest)); + task.displayName = item.src; + return task; })); const pages = () => {