fork-pipe
Inline fork/join stream processing.
Overview
Primarily intended for use with gulp, allows inline fork/join stream processing in a pipeline.
Installation
For the latest version:
npm install fork-pipe
Usage
, gulp = require"gulp" , ts = require"gulp-typescript" , sourcemaps = rquire"gulp-sourcemaps"; gulp.task"build",gulp.src"**/*.ts" .pipesourcemaps.init .pipets .pipefork // fork the output of ts() // add a fork to handle the .d.ts output .addout.dts // add a fork to handle the .js output .addout.js.pipesourcemaps.write"." // join the respective forks together into a merge2 stream and pipe the merged results .pipegulp.dest".";