0.2.4 • Published 10 years ago

gulp-bintray v0.2.4

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

gulp-bintray

A gulp task for uploading files to Bintray

example usage:

var gulp = require('gulp');
var zip = require('gulp-zip');
var bintray = require('./lib/index.js');
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:

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago