For each module I have some files that need to be copied over to the build directory, and am looking for a way to minimize the repeated code from this:
gulp
return gulp.src('./client/src/modules/(.*)/index.js') .pipe(gulp.dest('./build/public/js/$1'));
Worked for me !