0.0.8 • Published 5 years ago
publish-ftp v0.0.8
publish-ftp
推送资源到对应FTP服务的小工具
install
npm i publish-ftp -g
tips
当前目录下需要提供一份 ftp.json
{ "config": { "dev": { "localPath": "dist", "remotePath": "test", "connect": { "host": "xxx.xxx.xxx.xxx", "port": 21, "user": "root", "password": "123456" } }, "qa": { "localPath": "dist", "remotePath": "test", "connect": { "host": "xxx.xxx.xxx.xxx", "port": 21, "user": "root", "password": "123456" } } }, "version": { "file": { "name": "dist/index.html", "list": ["umi.css", "umi.js"] } }
}
### method
##### 推送代码
> 推送文件夹内容到dev环境,复制 localPath 下所有文件到 remotePath 目录下
publish dev
##### html页面增加引入文件的版本号
publish ver