1.0.0 • Published 6 years ago

upload-site v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

upload-site

A simple script to upload your folder to a remote server, via ftp.

Supports incremental uploads via directory hashing – in other words, if you haven't changed any of the contents of a sub-folder, next time you run this script, it will ignore that sub-folder. Then, if you change any of the contents of that sub-folder, next time you run this script, it will upload that sub-folder.

yarn add --dev upload-site

yarn run upload-site

Requirements

This package requires Node.js v9 or greater.

Configuration

package.json

{
  "upload-site": {
    "auth": {
      "host": "domain.com",
      "port": 21,
      "authKey": "my-ftppass-json-key"
    },
    "src": "dist",
    "dest": "/blog"
  }
}

.ftppass

Note: make sure to add .ftppass to your .gitignore!

{
  "my-ftppass-json-key": {
    "username": "ben@domain.com",
    "password": "qwertyui"
  }
}

CLI options

--debug

extra logging

--dry

perform all actions except ftp put – useful for testing ftp login, etc

1.0.0

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago