Comparing version 0.1.3 to 0.1.4
'use strict'; | ||
var groupCount; | ||
groupCount = 0; | ||
module.exports = function(gulp) { | ||
@@ -9,2 +13,5 @@ var async, sync; | ||
} | ||
if (prefix === 'sync group') { | ||
prefix += groupCount++; | ||
} | ||
result = []; | ||
@@ -27,8 +34,10 @@ syncCount = 0; | ||
} | ||
if (prefix === 'sync group') { | ||
prefix += groupCount++; | ||
} | ||
deps = []; | ||
_fn = function(taskName, deps, task) { | ||
var check; | ||
check = task.concat(); | ||
return gulp.task(taskName, deps, function(cb) { | ||
var onStop; | ||
var check, onStop; | ||
check = task.concat(); | ||
gulp.addListener('task_stop', onStop = function(e) { | ||
@@ -35,0 +44,0 @@ var i; |
{ | ||
"name": "gulp-sync", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "sync for dependency tasks of gulp.task method", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -83,3 +83,4 @@ # [gulp](http://gulpjs.com)-sync [![Build Status](https://travis-ci.org/kaminaly/gulp-sync.svg?branch=master)](https://travis-ci.org/kaminaly/gulp-sync) [![NPM version](https://badge.fury.io/js/gulp-sync.svg)](http://badge.fury.io/js/gulp-sync) | ||
if you need run multiple, method will required 2nd parameter. that must be unique. | ||
~~if you need run multiple, method will required 2nd parameter. that must be unique.~~ | ||
2nd parameter is no longer required. | ||
@@ -90,5 +91,5 @@ ```js | ||
gulp.task('debug', gulpsync.async(['a', ['b', 'c']], 'async debug')); | ||
gulp.task('release', gulpsync.sync([['c', 'd'], 'e'], 'sync release')); | ||
gulp.task('test', gulpsync.sync(['debug', 'f', 'g'], 'sync test')); | ||
gulp.task('debug', gulpsync.async(['a', ['b', 'c']])); | ||
gulp.task('release', gulpsync.sync([['c', 'd'], 'e'])); | ||
gulp.task('test', gulpsync.sync(['debug', 'f', 'g'])); | ||
@@ -113,7 +114,9 @@ gulp.task('default', ['debug']); | ||
Type: `String` | ||
Default: `sync group` | ||
Default: `sync group` + `count` | ||
prefix of generated task name | ||
prefix of generated task name | ||
for instance you can use this parameter for checking the validation | ||
### async(tasks, name) | ||
@@ -132,5 +135,6 @@ | ||
Type: `String` | ||
Default: `sync group` | ||
Default: `sync group` + `count` | ||
prefix of generated task name | ||
prefix of generated task name | ||
for instance you can use this parameter for checking the validation | ||
@@ -137,0 +141,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16132
69
141