1.0.6 • Published 6 years ago

gulp-website-deploy v1.0.6

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

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

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago