gulp-ftp
Upload files to an FTP-server
Useful for uploading and deploying things.
Install with npm
npm install --save-dev gulp-ftp
var gulp = require('gulp');
var ftp = require('gulp-ftp');
gulp.task('default', function () {
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.
Type: String
Default '.'
The local path to upload from. This is useful for example when you use
gulp.src('_public/js/*').pipe({remotePath: '/www/some/path'});
And you want the contents of _public/js
to be uploaded to
/www/some/path
, but not _public/js
itself. Then you just set
localPath
to _public/js
and you are done.
Type: Boolean
Default: true
Logging of files as they are uploaded. If set to false, you will only see a message when all files finished.
MIT © Sindre Sorhus