Skip to content

lnixz/scp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@xinliang/scp

Encapsulated node-scp, uploading files to the server is more convenient.

0. install

npm i @xinliang/scp -D

1. init scp.config.json file

The clientConfig configuration should be consistent with node-scp. If you expect more freedom of control, you should use node-scp directly

{
  "clientConfig": {
    "host": "www.google.com",
    "port": 22,
    "username": "root"
  },
  "uploadPath": "./dist",
  "remotePath": "project/workspace"
}

2. add scripts for package.json

  ...
  "scripts": {
+    "push": "scp",
  },
  ...

Releases

No releases published

Packages

No packages published