Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Disperse

Builds websites from source and deploys them through FTP.

Usage

gulp [build,deploy,disperse] [--site=domain.com] [--filter=glob]

Here's a standard build

build, deploy, disperse

Type: String Default: build

Specify task(s) to perform on site(s).

build

Generates site files from src/sites/ into build/.

  • Handlebars files are compiled with src/templates and src/partials.
  • Javascript and CSS files are minimized and merged into app.min.js and app.min.css.
  • Previously built files whose contents haven't changed are left untouched, while leftovers are pruned.

deploy

Uploads site files from build/ to their remote location as defined in config.yaml.

  • Currently supported protocols are ftp and sftp.
  • Only changed files are uploaded and there's no pruning.

disperse

Performs both the build and deploy tasks in succession.

--site

Type: String Default: sites with active: true in config.yaml

Specify site by domain.

--filter

Type: Glob Default: undefined

Filter site files by glob. See node-glob for the glob syntax.

Configuration

Site settings config.yaml

sites:
  yoursite.com:
    active: true
    url: https://yoursite.com/
    formTarget: https://yoursite.com/target.php
    analyticsEnabled: false
    analyticsId: UA-
    protocol: ftp
    host: ftp.yoursite.com
    port: 21
    timeout:
    remotePath: /www
    user:
    pass:
    template:
    description:
    pages:
      homepage: HTML page title goes here
      [...]
      contact: Page names become urls, i.e. yoursite.com/contact

Author

  • Fred Steegmans (u/jabman)

About

Builds & deploys websites through FTP

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.