【文件属性】:
文件名称:grunt-ftp:将文件上传到FTP服务器或从FTP服务器下载
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-26 07:59:57
JavaScript
grunt-ftp
将文件上传到FTP服务器或从FTP服务器下载
对于上载,部署和下载内容很有用。
安装
$ npm install --save-dev grunt-ftp
用法
上载
require ( 'load-grunt-tasks' ) ( grunt ) ; // npm install --save-dev load-grunt-tasks
grunt . initConfig ( {
ftpPut : {
options : {
host : 'website.com' ,
user : 'johndoe' ,
pass : '1234'
} ,
upload : {
files : {
'public_html' : 'src/*'
}
}
}
} ) ;
grunt . registerTask ( 'd
【文件预览】:
grunt-ftp-main
----.gitignore(13B)
----gruntfile.js(1KB)
----package.json(971B)
----test.js(505B)
----.github()
--------workflows()
----license(1KB)
----fixture()
--------fixture.txt(12B)
----readme.md(1KB)
----.gitattributes(12B)
----tasks()
--------ftp.js(2KB)
----.editorconfig(190B)