summaryrefslogtreecommitdiffstats
path: root/gulpfile.js/lib/export-tasks.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js/lib/export-tasks.js')
-rw-r--r--gulpfile.js/lib/export-tasks.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/gulpfile.js/lib/export-tasks.js b/gulpfile.js/lib/export-tasks.js
new file mode 100644
index 0000000..834cd9e
--- /dev/null
+++ b/gulpfile.js/lib/export-tasks.js
@@ -0,0 +1,4 @@
+'use strict'
+
+module.exports = (...tasks) =>
+ tasks.reduce((acc, task) => (acc[task.displayName || task.name] = task) && acc, { default: tasks.shift() })