🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

gulp-all

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-all

Promise.all for gulp streams, so you can compose a bunch of 'private' subtasks.

1.1.0
latest
Source
npm
Version published
Weekly downloads
1.6K
-8.77%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-all

npm version dependency status

Promise.all for gulp streams, so you can compose a bunch of "private" subtasks.

NOTE: ONLY FOR GULP@4.0

Usage

For example:

var all = require('gulp-all')

var styl_dir = 'path/to/styles/dir'
var js_dir   = 'path/to/scripts/dir'

function build() {
	return all(
		gulp.src(styl_dir + '/**/*')
			// build Styles
			.pipe(gulp.dest('dist_dir')),
		gulp.src(js_dir + '/**/*')
			// build Scripts
			.pipe(gulp.dest('dist_dir'))
	)
}

gulp.task('build', build)

also you can put subtasks in an array:

var scriptBundles = [/*...*/]

function build(){
	var subtasks = scriptBundles.map(function(bundle){
		return gulp.src(bundle.src).pipe(/* concat to bundle.target */)
	})
	return all(subtasks)
}

Keywords

gulp

FAQs

Package last updated on 02 Dec 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