1.0.4 • Published 11 months ago

publish-pros v1.0.4

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

sftp.json 配置

npm install publish-pros -g
publish-pros -e test -p project -r // 删除 remotePath 下面的 -p remotePath 文件夹
publish-pros -e test -p project -c// 复制 localPath 下面的 -p localPath 文件夹 到 remotePath 下面的 -p remotePath 文件夹
// 或者直接 -r || -c。 localPath remotePath
{
  "test": {
    "project": {
      "localPath": "./dist/project",
      "remotePath": "/xxxx/xx/xxx/xx/xxx/xxx"
    },
    "localPath": "./dist/", // 复制的路径 会复制dist下的所有文件到服务器的remotePath路径
    "remotePath": "/xxx/xx/xx/", // 复制到服务器的路径
    "protectedRemotePath": "",
    "connect": {
      "host": "xxx",
      "port": xxx,
      "username": "xxx",
      "password": "xxxx"
    }
  },
  "master":{
    "localPath": "./dist/", // 复制的路径 会复制dist下的所有文件到服务器的remotePath路径
    "remotePath": "/xxx/xx/xx/xx/xx/", // 复制到服务器的路径
    "protectedRemotePath": "",
    "connect": {
      "host": "xxx",
      "port": xxx,
      "username": "xxx",
      "password": "xxxx"
    }
  }
}
1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago