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
Not the answer, but applicable to this question's appearance in search results.
To copy files/folders in gulp
gulp.task('copy', () => gulp .src('index.js') .pipe(gulp.dest('dist')) );