Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

copy subtask to support multiple destinations #118

Open
maxwellpeterson-wf opened this issue Dec 1, 2014 · 1 comment
Open

copy subtask to support multiple destinations #118

maxwellpeterson-wf opened this issue Dec 1, 2014 · 1 comment

Comments

@maxwellpeterson-wf
Copy link
Member

@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
Copy link

@markerickson-wf fyi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants