A lot of people currently using task managers like Gulp. Most of them are confronted with the same problem of a huge
gulpfile.js. I had the same problem and started searching for a solution. After a not so long search I found a post by Eric Brehault. His solution for me still had one downside: re-usability of the same task.
For me the solution to this was generating tasks buy the content of the configuration file. I will give a small and simplified example of how I did this.
First create the configuration file. Within this file you need to group all the files for the same tasks with the task name as the key.