Workiva / wGulp

Opinionated Suite of Gulp Tasks for JavaScript and TypeScript projects.
Apache License 2.0
12 stars 9 forks source link

copy subtask to support multiple destinations #118

Open maxwellpeterson-wf opened 10 years ago

maxwellpeterson-wf commented 10 years ago

@travissanderson-wf requested support to copy to multiple destinations:

gulp.task('dartLib', wGulp.getDeps('dartLib'), wGulp.copy({
    changed: true,
    src: ['src/wTransport.dart', 'dist/wTransportGlobal.bundle.js'],
    dest: ['lib/', 'examples/dart/web/']
}));

First thoughts on implementation: I think gulp recently released support for this with a syntax like so:

gulp.src('file.ext')
    .dest('locationA')
    .dest('locationB')

If that is indeed the case, the copy subtask should be able to apply .dest() chains in a loop.

travissanderson-wf commented 10 years ago

@markerickson-wf fyi