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

sync for dependency tasks of gulp.task method

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-sync Build Status NPM version

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([
    // sync
    'a',
    [
        // async
        'b-1',
        'b-2'
    ],
    [
        // async
        'c-1',
        [
            // sync
            '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']));
//same gulp.task('default', ['a', 'b', 'c']);
var gulp = require('gulp');
var gulpsync = require('gulp-sync')(gulp);

gulp.task('default', gulpsync.async([
    // async
    'a',
    [
        // sync
        'b-1',
        'b-2'
    ],
    [
        // sync
        'c-1',
        [
            // async
            'c-2-1',
            'c-2-2'
        ]
    ]
]));

mix and multiple

if you need run multiple, method will required 2nd parameter. that must be unique.
2nd parameter is no longer required.

var gulp = require('gulp');
var gulpsync = require('gulp-sync')(gulp);

gulp.task('debug', gulpsync.async(['a', ['b', 'c']]));
gulp.task('release', gulpsync.sync([['c', 'd'], 'e']));
gulp.task('test', gulpsync.sync(['debug', 'f', 'g']));

gulp.task('default', ['debug']);

API

sync(tasks, name)

tasks

Type: Array of String

task name list. required.

name

Type: String
Default: sync group + count

prefix of generated task name
for instance you can use this parameter for checking the validation

async(tasks, name)

tasks

Type: Array of String

task name list. required.

name

Type: String
Default: sync group + count

prefix of generated task name
for instance you can use this parameter for checking the validation

License

MIT

Keywords

FAQs

Package last updated on 08 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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