Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using multiple sources in one task with gulp.src writable passthrough #541

Closed
xmlking opened this issue Jun 23, 2014 · 1 comment
Closed

Comments

@xmlking
Copy link

xmlking commented Jun 23, 2014

Trying to use multiple sources in one task with newly introduced Gulp 3.8.0 gulp.src writable passthrough which is not working.

Am I doing wrong? do I still need to use merge-stream?

https://github.com/gulpjs/gulp/blob/master/docs/recipes/using-multiple-sources-in-one-task.md

gulp.task('build-deps', function(){
    return gulp.src('bower_components/angular-assert/src/**/*.js')
        .pipe($.traceur({modules: 'amd'}))
        .pipe(gulp.dest('bower_components/angular-assert/dist/amd'))
        .pipe(gulp.src('app/bower_components/angular-diary/src/**/*.js'))
        .pipe($.traceur({modules: 'amd'}))
        .pipe(gulp.dest('app/bower_components/angular-diary/dist/amd'))
        .pipe(gulp.src('app/bower_components/angular-di/src/**/*.js'))
        .pipe($.traceur({modules: 'amd'}))
        .pipe(gulp.dest('app/bower_components/angular-di/dist/amd'));
});
@yocontra
Copy link
Member

You should probably do one src at the top with all of the files in it, run that into gulp-rename where you change it to src to amd then run that through traceur then into dest(dist).

This is a bug gulpjs/vinyl-fs#25

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

No branches or pull requests

2 participants