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

Bendoh streams #2

Closed
wants to merge 3 commits into from
Closed

Conversation

bendoh
Copy link

@bendoh bendoh commented Sep 6, 2014

This is related to gulp-ruby-sass issue #123, and introduces a 'streams' option which will allow users to specify alternate pipelines for output files matching provided globs.

Example,

    intermediate({
        output: relativecompiledir,
        container: options.container || 'gulp-ruby-sass',
        streams: {
            '*.map': function(map) { map.pipe(gulp.dest('maps')); }
        }
    }, function (tempdir, cb, vinylfiles) {

The benefit of this is that it allows gulp modules that require intermediate, but might emit two different output file types, can split the stream into two pipes for each file type, which can be dealt with distinctly.

This is fully backward-compatible.

@yocontra
Copy link

Why wouldn't you just use gulp-if for this? This seems like the wrong place to put any of this logic

@bendoh
Copy link
Author

bendoh commented Sep 10, 2014

Thanks, I'll look into that instead. I realize know that breaking the stream into multiple pipelines would create more problems than it's worth.

@bendoh bendoh closed this Sep 10, 2014
@yocontra
Copy link

@bendoh I think gulp-if is what you want 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants