sync for dependency tasks of gulp.task method
this is not gulp plugin
Install
$ npm install --save-dev gulp-sync
Usage
sync
var gulp = require('gulp');
var gulpsync = require('gulp-sync')(gulp);
gulp.task('default', gulpsync.sync(['a', 'b', 'c']));
var gulp = require('gulp');
var gulpsync = require('gulp-sync')(gulp);
gulp.task('default', gulpsync.sync([
'a',
[
'b-1',
'b-2'
],
[
'c-1',
[
'c-2-1',
'c-2-2'
]
]
]));
async
var gulp = require('gulp');
var gulpsync = require('gulp-sync')(gulp);
gulp.task('default', gulpsync.async(['a', 'b', 'c']));
var gulp = require('gulp');
var gulpsync = require('gulp-sync')(gulp);
gulp.task('default', gulpsync.async([
'a',
[
'b-1',
'b-2'
],
[
'c-1',
[
'c-2-1',
'c-2-2'
]
]
]));
API
sync(tasks, name)
tasks
Type: Array
of String
task name list.
required.
name
Type: String
Default: sync group
prefix of generated task name
async(tasks, name)
tasks
Type: Array
of String
task name list.
required.
name
Type: String
Default: sync group
prefix of generated task name
License
MIT