【文件属性】:
文件名称:gulp-ftp:[不建议使用]将文件上传到FTP服务器
文件大小:5KB
文件格式:ZIP
更新时间:2021-02-03 16:49:00
nodejs javascript gulp gulp-plugin ftp
gulp-ftp
不推荐使用 。
将文件上传到FTP服务器
对于上载和部署内容很有用。
安装
$ npm install --save-dev gulp-ftp
用法
var gulp = require ( 'gulp' ) ;
var gutil = require ( 'gulp-util' ) ;
var ftp = require ( 'gulp-ftp' ) ;
gulp . task ( 'default' , function ( ) {
return gulp . src ( 'src/*' )
. pipe ( ftp ( {
host : 'website.com' ,
user : 'johndoe' ,
pass : '1234'
} ) )
// you need to have some kind of stream after gulp-ftp to make sure it's flushed
// this can be a gulp plugin, gulp.dest, or any kind of strea
【文件预览】:
gulp-ftp-master
----.jshintrc(170B)
----.gitattributes(12B)
----test.js(1KB)
----license(1KB)
----.travis.yml(72B)
----.editorconfig(231B)
----.gitignore(13B)
----index.js(2KB)
----readme.md(1KB)
----package.json(921B)