publish-ftp

0.0.8 • Public • Published

publish-ftp

推送资源到对应FTP服务的小工具

install

    npm i publish-ftp -g

tips

当前目录下需要提供一份 ftp.json

{
  "config": {
    "dev": {
      "localPath": "dist",
      "remotePath": "test",
      "connect": {
        "host": "xxx.xxx.xxx.xxx",
        "port": 21,
        "user": "root", 
        "password": "123456" 
      }
    },
    "qa": {
      "localPath": "dist",
      "remotePath": "test",
      "connect": {
        "host": "xxx.xxx.xxx.xxx",
        "port": 21,
        "user": "root", 
        "password": "123456" 
      }
    }
  },
  "version": {
    "file": {
      "name": "dist/index.html",
      "list": ["umi.css", "umi.js"]
    }
  }
  
}

method

推送代码

推送文件夹内容到dev环境,复制 localPath 下所有文件到 remotePath 目录下

publish dev
html页面增加引入文件的版本号
publish ver

Readme

Keywords

Package Sidebar

Install

npm i publish-ftp

Weekly Downloads

1

Version

0.0.8

License

ISC

Unpacked Size

5.78 kB

Total Files

3

Last publish

Collaborators

  • pigchilde