Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('ln', () =>
vfs.src(['package.json', 'node_modules'], {
followSymlinks: false,
})
.pipe(vfs.symlink(DEST))
.pipe($.print(fp => `symlink: ${fp}`))
);
gulp.task('misc-ln', function () {
return gulp.src('front/misc/**/*')
.pipe(vfs.symlink(destFolder));
});
.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}));
gulp.task('symlink', function () {
vfs.src('storage/')
.pipe(vfs.symlink('public/storage'));
});
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`));
});
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`, () => {
.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}));
});