gulp-ftp
Upload files to an FTP-server
Useful for uploading and deploying things.
$ npm install --save-dev gulp-ftp
var gulp = require('gulp');
var ftp = require('gulp-ftp');
gulp.task('default', function () {
return gulp.src('src/*')
.pipe(ftp({
host: 'website.com',
user: 'johndoe',
pass: '1234'
}));
});
Required
Type: String
Type: Number
Default: 21
Type: String
Default: 'anonymous'
Type: String
Default: '@anonymous'
Type: String
Default: '/'
The remote path to upload too.
Doesn't have to exist as jsftp-mkdirp is used.