Guest User

Untitled

a guest
Feb 28th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var gulp = require('gulp');
  2. var gutil = require('gulp-util');
  3. // get it with 'npm install --save-dev gulp-ftp'
  4. var ftp = require('gulp-ftp');
  5.  
  6. // deploy task
  7. gulp.task('deploy', function () {
  8. return gulp.src(['index.html', 'css/*', 'vendor/**', 'img/**'], {base: '.'}) // omit and add whatever is needed
  9. .pipe(ftp({
  10. host: 'host.tdl',
  11. user: 'username',
  12. pass: 'password',
  13. remotePath: '/path/',
  14. }))
  15. .pipe(gutil.noop());
  16. });
Add Comment
Please, Sign In to add comment