npm install --global gulp-cli npm install --save-dev gulp gulp-util vinyl-ftp
var gulp = require( 'gulp' ); var gutil = require( 'gulp-util' ); var ftp = require( 'vinyl-ftp' ); gulp.task( 'deploy', function () { var conn = ftp.create( { host: 'valahol.tld', user: 'valaki', password: 'titok', parallel: 10, log: gutil.log } ); var globs = [ 'src/**', 'css/**', 'js/**', 'fonts/**', 'index.html' ]; return gulp.src( globs, { buffer: false } ) .pipe( conn.newer( '/public_html' ) ) // csak újabb fájlok .pipe( conn.dest( '/public_html' ) ); } );