Transfer files in gulp via scp. Currently i have only tested it with an ssh connection via key authentication.
$ npm install --save-dev gulp-scp
var gulp = require('gulp');
var scp = require('gulp-scp');
gulp.task('default', function () {
gulp.src('src/*')
.pipe(scp({
host: '255.255.255.255',
user: 'username',
port: 22,
path: '~/dir'
}));
});
Required
Type: String
Type: Number
Default: 22
Type: String
Default: ''
Required
Type: String
The path to transfer to has to exist.