gulp-website-deploy

1.0.6 • Public • Published

Zip and deploy files to ftp server

Install

$ npm install --save gulp-website-deploy

Usage

const gulp = require('gulp');
const websiteDeploy = require('gulp-website-deploy');
 
gulp.task('deploy', () =>
    websiteDeploy({
        ftpConfig: '.ftp',
        url: '',
        directory: 'testpkg',
        destination: 'deploy',
        name: 'LP',
        dateFormat: 'YYYYMMDD_HHmmSS',
        zip: false,
        password: ''
    });
);

API

websiteDeploy([options])

ftpConfig

Path to ftp config file in json format. Default: '.ftp'

Type: string

Supports config from ftp package. For example:

{
  "host": "",
  "port": 21,
  "user": "",
  "password": ""
}

url

Url from which site will be served. Default: ''

Type: string

directory

Source directory of package to process. Default: 'testpkg'

Type: string

destination

Destination directory on remote server. Default: 'deploy'

Type: string

dateFormat

Format of date which will be appended to uploaded package. Default: 'YYYYMMDD_HHmmSS'

Type: string

zip

Should script create and upload zip file. Default: false

Type: boolean

password

Password to be applied for zip package. Requires zip command in shell path. Default: ''

Type: string

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-website-deploy

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

6.13 kB

Total Files

3

Last publish

Collaborators

  • sdrozdz