gulp task to upload to bintray
TypeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
definitions
lib
src
.gitignore
LICENSE
README.md
gulpfile.js
npm-shrinkwrap.json
package.json

README.md

gulp-bintray

A gulp task for uploading files to Bintray

example usage:

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: