gulp-minio-s3
Gulp plugin to upload files to minio S3
Usage
- Install the plugin as development dependency
npm i -D gulp-minio-s3
- Use it in your
gulpfile.js
as follow
const src task = ;const minioS3 = ; //Minio Configurationsconst minioConfig = endPoint: END_POINT_HERE port: 9000 useSSL: false accessKey: YOUR_ACCESS_KEY secretKey: YOUR_SECRET_KEY; // S3 Bucketconst bucketName = 'my-bucker'; ; ;
Options
BucketName (required)
type: String
The bucket that the files will be uploaded to. Your must create the bucket beforehand. If the bucket does not exists, the plugin will throw an Error.
opts (required)
type: Object
Minio Configurations. Refer to the minio documeantion or the Minio JavaScript SDK for more details.
prefix (optional)
type: Sring
Optional param to upload files with prefix (folder) to minio