Package Exports
- @xinliang/scp
Readme
@xinliang/scp
Encapsulated node-scp, uploading files to the server is more convenient.
0. install
npm i @xinliang/scp -D1. init scp.config.json file
{
"clientConfig": {
"host": "www.google.com",
"port": 22,
"username": "root"
},
"uploadPath": "./dist",
"remotePath": "project/workspace"
}2. add scripts for package.json
...
"scripts": {
+ "push": "scp",
},
...