0.1.4 • Published 5 years ago
auto-sftp v0.1.4
auto-sftp
编写 sftp 配置文件,自动上传本地文件到服务器
安装
yarn add auto-sftp -D
// 或
npx sftp u
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
配置 sftprc.json
{
"test": [
{
"sftp": {
"host": "",
"post": 22,
"username": "",
"password": "",
"privateKey": "",
"passphrase": ""
},
"filesPath": [
{
"local": "./example/static",
"remote": "/remote",
"mode": "all"
}
]
}
],
"prod": []
}
mode: all / onlyFile
TODO
-[] 优化上传打印信息,按文件类型区分