trustvox / gulp-minio

A gulp plugin to publish files to minio s3

Home Page:https://minio.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-minio

A gulp plugin to publish files to minio s3

Build Status npm

Install

First, install gulp-minio as a development dependency:

npm install gulp-minio --save-dev

Then, add it to your gulpfile.coffee or gulpfile.js:

Usage

Coffescript way:

gulp  = require 'gulp'
minio = require 'gulp-minio'

bucket = 'my-bucket-name'

config = {
  endPoint: 'storage.example.com',
  secure: true,
  accessKey: 'your access key here',
  secretKey: 'your secret key here'
}

# suppose you want to publish public files:
gulp.src 'public/**/*'
  .pipe minio(bucket, config)

Or a decaff way:

var bucket, config, gulp, minio;

gulp = require('gulp');
minio = require('gulp-minio');

bucket = 'my-bucket-name';

config = {
  endPoint: 'storage.example.com',
  secure: true,
  accessKey: 'your access key here',
  secretKey: 'your secret key here'
};

// suppose you want to publish public files:
gulp.src('public/**/*')
  .pipe(minio(bucket, config));

About

A gulp plugin to publish files to minio s3

https://minio.io

License:MIT License


Languages

Language:JavaScript 100.0%