1.0.2 • Published 9 months ago

@xinliang/scp v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

@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",
  },
  ...
1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago