github地址:

https://github.com/shangyueyue/ssy-publish

一、安装

npm install ssy-publish -D

二、在process.cwd() 目录下创建 sftprc.json文件

{
  "localPath": "./dist",
  "remotePath": "/app/xxx",
  "protectedRemotePath": "/app/xxx",
  "connect": {
      "host": "xx.xx.xx.xx",
      "port": 22,
      "username": "xxx",
      "password": "xxx"
  }
}

三、npm run ssy-publish 

 "scripts": {
    "ssy-publish": "ssy-publish -c dist"
  },

 

相关文章:

  • 2021-07-14
  • 2022-01-26
  • 2021-07-01
  • 2022-01-07
  • 2021-06-01
猜你喜欢
  • 2022-01-01
  • 2021-12-23
  • 2021-09-20
  • 2022-01-19
  • 2021-11-25
  • 2021-12-21
  • 2021-08-30
相关资源
相似解决方案