gulp-async-tasks
v1.0.0
Published
A gulp plugin to create async tasks from gulpfile.js tasks.
Downloads
85
Readme
gulp-async-tasks
A gulp plugin to create async tasks from gulpfile.js tasks.
Install
With npm do:
$ npm install --save-dev gulp-async-tasks
Usage
gulp-async-tasks creates async tasks for all tasks in gulpfile.js. Async task has name suffix ":async".
var gulp = require('gulp-async-tasks')(require('gulp'));
gulp.task('dosomething', function() {
return gulp.src('src/**/*').pipe(...);
});
gulp.task('default', ['dosomeghing:async']);
If you use gulp-async-tasks with require-dir,
var gulp = require('gulp');
require('require-dir')('./gulp');
require('gulp-async-tasks')(gulp);
API
Construct
var gulp = require('gulp-async-tasks')(require('gulp'), [*options*]);
Options:
| name | type | description | default value | |-------------|---------|---------------------------------------|-------------------------------| | verbose | boolean | Show verbose messages. | false |
Example:
var gulp = require('gulp-async-tasks')(require('gulp'), [verbose: false]);