How to use the vinyl-fs.symlink function in vinyl-fs

To help you get started, we’ve selected a few vinyl-fs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imheretw / imhere / tools / gulp / tasks / build.js View on Github external
gulp.task('ln', () =>
  vfs.src(['package.json', 'node_modules'], {
    followSymlinks: false,
  })
    .pipe(vfs.symlink(DEST))
    .pipe($.print(fp => `symlink: ${fp}`))
);
github JonAbrams / synth / gulp / index.js View on Github external
gulp.task('misc-ln', function () {
    return gulp.src('front/misc/**/*')
    .pipe(vfs.symlink(destFolder));
  });
github bcvsolutions / CzechIdMng / Realization / frontend / czechidm-app / gulpfile.babel.js View on Github external
.pipe(flatmap((stream, file) => {
      if (!file.path.endsWith('czechidm-app')) {
        util.log('Product module found:', file.path);
        vfs.src('./node_modules')
          .pipe(vfs.symlink(`${file.path }/`, {useJunctions: true}))
          .pipe(flatmap((streamLog, fileLog) => {
            util.log('Created symlink on main "node_modules"', util.colors.magenta(fileLog.path));
            return streamLog;
          }))
          .pipe(shell([
            'npm install'
          ], {verbose: true, quiet: false}));
      }
      return stream;
    }))
    .pipe(vfs.symlink('./czechidm-modules', {useJunctions: true}));
github modulr / sails-angularjs / app / gulpfile.js View on Github external
gulp.task('symlink', function () {
  vfs.src('storage/')
    .pipe(vfs.symlink('public/storage'));
});
github Hypercubed / Project-Chi / gulp / tasks / build.js View on Github external
gulp.task('symlink-data', () => {
  if (!paths.dataLink || paths.dataLink.length === 0) {
    return;
  }
  return vfs.src(paths.dataLink, {followSymlinks: false, buffer: false, allowEmpty: true})
    .pipe(vfs.symlink(`${paths.dist}/data`));
});
github wsick / Fayde / gulp / reset.js View on Github external
gulp.task(`symlink-${scaffold.name}-libs`, () => {
            var libs = glob.sync("lib/*", !scaffold.ignore ? undefined : {ignore: scaffold.ignore});
            var dest = path.resolve(path.join(scaffold.name, 'lib'));
            return vfs.src(libs).pipe(vfs.symlink(dest));
        });
        gulp.task(`symlink-${scaffold.name}-local`, () => {
github bcvsolutions / CzechIdMng / Realization / frontend / czechidm-app / gulpfile.babel.js View on Github external
.pipe(flatmap((stream, file) => {
      if (!file.path.endsWith('czechidm-app')) {
        util.log('Product module found:', file.path);
        vfs.src('./node_modules')
          .pipe(vfs.symlink(`${file.path }/`, {useJunctions: true}))
          .pipe(flatmap((streamLog, fileLog) => {
            util.log('Created symlink on main "node_modules"', util.colors.magenta(fileLog.path));
            return streamLog;
          }))
          .pipe(shell([
            'npm install'
          ], {verbose: true, quiet: false}));
      }
      return stream;
    }))
    .pipe(vfs.symlink('./czechidm-modules', {useJunctions: true}));
});

vinyl-fs

Vinyl adapter for the file system.

MIT
Latest version published 1 year ago

Package Health Score

74 / 100
Full package analysis