idancali / gulp-vanilla

Perform non-file related gulp asynchronous work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Overview

gulp-vanilla allows you perform some non-file related asynchronous work during your gulp process.

Installation

$ npm install --save-dev gulp-vanilla

Usage

var gulp = require('gulp');
var vanilla = require('gulp-vanilla');

function myVanillaWorker(success, error) {
   // Do whatever you want here

   // To signal success
   // success(); // To signal success

   // To signal an error
   // error('Some error message');
}

gulp.task('vanilla', function () {
	return gulp.src('files/**/*')
		.pipe(vanilla.worker(myVanillaWorker))
		.pipe(gulp.dest('dist'));
});

License

MIT © Dan Calinescu

About

Perform non-file related gulp asynchronous work


Languages

Language:JavaScript 100.0%