gulp-minio
v1.2.3
Published
A gulp plugin to publish files to minio s3
Downloads
27
Readme
gulp-minio
A gulp plugin to publish files to minio s3
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));