0.1.0 • Published 9 years ago

gulp-highwinds v0.1.0

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

gulp-highwinds

NPM

Highwinds plugin for gulp based on gulp-cloudfiles.

Install

npm install --save-dev gulp-highwinds

Config

Setup a highwinds.json file or load these through another config file or env vars.

{
  "username": "HIGHWINDS-USERNAME",
  "password": "HIGHWINDS-PASSWORD",
  "authUrl": "HIGHWINDS-AUTH-URL",
  "container": "HIGHWINDS-CONTAINER"
}

Usage

var fs = require('fs')
var gulp = require('gulp');
var openstack = require("gulp-highwinds");
var highwinds = JSON.parse(fs.readFileSync('./rackspace.json'));

var options = {}

gulp.task('highwinds', function() {
  return gulp.src('./dist/**', {read: false})
    .pipe(openstack(highwinds, options));
});

Options

  • headers - Headers to set to each file uploaded - Type: object - Default: {}
  • uploadPath - Type: String - Default: ""

License

MIT License