Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frankwallis/gulp-bintray

gulp task to upload to bintray
https://github.com/frankwallis/gulp-bintray

Last synced: 20 days ago
JSON representation

gulp task to upload to bintray

Awesome Lists containing this project

README

        

gulp-bintray
============

A gulp task for uploading files to Bintray

example usage:
```javascript
var gulp = require('gulp');
var zip = require('gulp-zip');
var bintray = require('gulp-bintray');
var clean = require('gulp-clean');
var bump = require('gulp-bump');

var bintrayopts = {
username: 'bintrayuser',
organization: 'bintrayorgs'; // default: username
repository: 'gulp-plugins',
pkg: {
name: 'bintraypackage',
version: null; // default: package.version
desc: null; // default: 'Automatically created gulp-bintray package'
licenses?: null; // default: ['MIT']
}

apikey: '99999999999999999999999999999999999',
baseUrl: null; // default: Bintray.apiBaseUrl
};

gulp.task('bump', function() {
return gulp.src('./package.json')
.pipe(bump({type:'minor'}))
.pipe(gulp.dest('./'));
});

gulp.task('bintray', ['bump'], function() {
return gulp.src([ '**/*.*', '!node_modules/**' ])
.pipe(zip('archive.zip'))
.pipe(gulp.dest('.'))
.pipe(bintray(bintrayopts))
.pipe(clean())
});

gulp.task('release', ['bump', 'bintray' ], function() {
console.log('Released minor version ' + require('./package.json').version);
});

```
Credits:
========

- Shay Yaakov
- https://github.com/shayke/grunt-bintray-deploy
- https://github.com/h2non/node-bintray