Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-sync

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-sync - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

15

lib/index.js
'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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc