@xinliang/scp
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @xinliang/scp

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

11.2 kB

Total Files

9

Last publish

Collaborators

  • xinliang