vargulp=require('gulp');vargutil=require('gulp-util');varftp=require('gulp-ftp');gulp.task('default',function(){returngulp.src('src/*').pipe(ftp({host: 'website.com',user: 'johndoe',pass: '1234'}))// 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());});
请发表评论