npm.io
0.1.0 • Published 11 years ago

gulp-highwinds

Licence
—
Version
0.1.0
Deps
5
Vulns
0
Weekly
0

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

Keywords