New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gulp-tosync

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tosync

> A simple gulp plugin which is using to run the tasks of gulp.task method in sync way

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

gulp-tosync

A simple gulp plugin which is using to run the tasks of gulp.task method in sync way

Install

$ npm install gulp-tosync --save

Usage

Import the plugin after installed:

var gulptosync = require("gulp-tosync")

demo_1:

gulp.task("default", gulpSync(["build-css", "build-js", "build-img"], "build-html"));

results:

E:\GitHub\myblog>gulp
[17:44:55] Using gulpfile E:\GitHub\myblog\gulpfile.js
[17:44:55] Starting 'default'...
[17:44:55] Starting 'build-css'...
[17:44:55] Starting 'build-img'...
[17:44:55] Starting 'build-js'...
[17:44:55] Finished 'build-img' after 23 ms
[17:44:56] Finished 'build-css' after 615 ms
[17:44:56] Finished 'build-js' after 703 ms
[17:44:56] Starting 'build-html'...
[17:44:56] Finished 'build-html' after 48 ms
[17:44:56] Finished 'default' after 850 ms

demo_2:

gulp.task("test", gulpSync(["build-js", "build-img"]));
gulp.task("default", gulpSync(["build-css", "test"], "build-html"));

results:

E:\GitHub\myblog>gulp
[17:47:45] Using gulpfile E:\GitHub\myblog\gulpfile.js
[17:47:45] Starting 'default'...
[17:47:45] Starting 'build-css'...
[17:47:45] Starting 'build-img'...
[17:47:45] Starting 'test'...
[17:47:45] Starting 'build-js'...
[17:47:45] Finished 'build-img' after 24 ms
[17:47:45] Finished 'build-css' after 627 ms
[17:47:45] Finished 'build-js' after 713 ms
[17:47:45] Finished 'test' after 727 ms
[17:47:45] Starting 'build-html'...
[17:47:45] Finished 'build-html' after 46 ms
[17:47:45] Finished 'default' after 839 ms

Lisence

MIT

FAQs

Package last updated on 18 Aug 2015

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