gulp.task('ftp', function(){ return gulp.src('build/**/*') .pipe(ftp({ host: buildConfig.ftp.host, user: buildConfig.ftp.user, pass: buildConfig.ftp.pass, remotePath: buildConfig.ftp.remotePath })) .pipe(gutil.noop()) })
}, function (promptResult) { gulp.src(['apvWebApp/**']) .pipe(ftp({ host: 'heinersuter.ch', user: '******', pass: promptResult.pass, remotePath: '/httpdocs' })) .pipe(gutil.noop( )) .on('end', done); }));
gulp.task( 'ftp-deploy', function() { var ftpConfig = gulpconfig.ftpConfig; gulp.src( gulpconfig.dirs.deploy ) .pipe( ftp({ host : ftpConfig.host, user : ftpConfig.user, pass : ftpConfig.password }) ); });
gulp.task('ftp', function () { return gulp.src('build/**/*') .pipe(ftp({ host: 'host', user: '******', pass: '******', remotePath: '/public_html/' })) // you need to have some kind of stream after gulp-ftp to make sure it's flushed // this can be a gulp plugin, gulp.dest, or any kind of stream // here we use a passthrough stream });
gulp.task('push', function () { return gulp.src('dist/**/*') .pipe(ftp({ host: 'jupiter.effetto.pro', user: '******', pass: '******', remotePath: '/land/default' })) // you need to have some kind of stream after gulp-ftp to make sure it's flushed // this can be a gulp plugin, gulp.dest, or any kind of stream // here we use a passthrough stream .pipe(gutil.noop()); });
function remoteFtp(cb) { let remotePath = config['ftp']['remotePath'] || ""; let ftpConfig = _.extend(config['ftp'], { remotePath: path.join(remotePath, projectName) }); let distPath = config['ftp']['includeHtml'] ? path.join(projectPath, './dist/**/*') : [path.join(projectPath, './dist/**/*'), path.join(projectPath, '!./dist/html/**/*.html')]; gulp.src(distPath, {base: '.'}) .pipe(ftp(ftpConfig)) .on('end', function () { console.log('ftp success.'); log('ftp success.'); cb && cb(); }); }
function to (type) { let destination = secret.destinations[type]; if (!destination) { throw Error('Destination name not valid'); } return gulp.src('./dist/**/*') .pipe(ftp({ user: destination.username, pass: destination.password, host: destination.host, remotePath: destination.remotePath })) // you need to have some kind of stream after gulp-ftp to make sure it's flushed // this can be a gulp plugin, gulp.dest, or any kind of stream // here we use a passthrough stream .pipe(gutil.noop()); }
gulp.task("upload",function(){ return gulp.src('.cortex/built/**/*') .pipe(ftp(ftpconfig)); });
gulp.task('dist', function() { var ftpstream = ftp(ftpConfig); return gulp.src('dist/**/') .pipe(ftpstream) .pipe(gutil.noop()); });
gulp.task('goLive', function () { gulp.src('./src/**/*.*') .pipe(ftp(ftpConfig)); });
gulp.task('ftpControllers:deploy', function () { return gulp.src('./controllers/**/*') .pipe(ftp(ftpControllersConfig)) .pipe(gutil.noop()); });
gulp.task('publish', ['pubImg','pubCSS','pubJS','pubDep','pubHTML'], function(){ return gulp.src('*') .pipe(ftp(configFTP(''))) .pipe(util.noop()); });
gulp.task('pubHTML', function(){ return gulp.src('*.html') .pipe(ftp(configFTP(''))) .pipe(util.noop()); });
gulp.task('pubJS', function(){ return gulp.src('js/*.js') .pipe(ftp(configFTP('js'))) .pipe(util.noop()); });
gulp.task('pubImg', function(arch){ return gulp.src((arch === null ? 'images/*' : 'images/'+arch)) .pipe(ftp(configFTP('images'))) .pipe(util.noop()); });
gulp.task('pubWS', function(arch){ return gulp.src((arch === null ? 'ws/*' : 'ws/'+arch)) .pipe(ftp(configFTP('ws'))) .pipe(util.noop()); });
gulp.task('ftp', function() { if (settings && settings.ftp) { return gulp.src(settings.ftp.src) .pipe(ftp(settings.ftp)); } });
gulp.task('ftpFront:bowerComponents', function () { return gulp.src('./lk/bower_components/**/*') .pipe(ftp(ftpFrontConfig)) .pipe(gutil.noop()); });
gulp.task('ftp', function(){ //アップロードするディレクトリを指定。 gulp.src() .pipe(ftp(ftpOptions)) .pipe(gutil.noop()); });
gulp.task('ftpFront:lk', function () { return gulp.src(['./lk/**/*', '!./lk/bower_components/**/*']) .pipe(ftp(ftpFrontConfig)) .pipe(gutil.noop()); });