vinly-fs
already supports symlinks.
Like gulp.dest, but handles symlinks.
It assumes that if a vinyl file
has a field symlink
, then it is a string
with the value for the
symlink itself.
var gulp = require('gulp');
var symdest = require('gulp-symdest');
gulp.task('default', function () {
return gulp.src('path_with_symlinks/**')
.pipe(symdest('out'));
});