
Security News
Free Certified Patch for Critical Rails Active Storage Vulnerability
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.
Grouping tasks for gulp.
Require gulp-group and pass in gulp and optional config object.
// in your gulpfile.js
//instead of
var gulp = require('gulp');
// do
var gulp = require('gulp-group')(require('gulp'));
You can group tasks using gulp.group().
var gulp = require('gulp-group')(require('gulp'));
gulp.group('docs', function() {
gulp.group('build', function() {
gulp.group('dry-run', function() {
gulp.task('apib', function() {});
gulp.task('html', ['./apib'], function() {});
});
gulp.task('apib', function() {});
gulp.task('html', ['./apib'], function() {});
});
gulp.group('watch', function() {
gulp.task('apib', ['../build/dry-run/apib'], function() {});
gulp.task('html', ['../build/dry-run/html'], function() {});
});
});
gulp.task('help', function() {});
gulp.group('empty', function() {});
You can now run
$ gulp docs/build/dry-run
[16:15:24] Using gulpfile /path/to/gulpfile.js
[16:15:24] Starting 'docs/build/dry-run/apib'...
[16:15:24] Finished 'docs/build/dry-run/apib' after 114 μs
[16:15:24] Starting 'docs/build/dry-run/html'...
[16:15:24] Finished 'docs/build/dry-run/html' after 27 μs
[16:15:24] Starting 'docs/build/dry-run'...
[16:15:24] Finished 'docs/build/dry-run' after 6.96 μs
By default, tasks will be defined as if they were entries in a directory structure. However, you can change these by providing a config object.
var gulp = require('gulp-group')(require('gulp'), {separator: ':', current: '~', parent: '^'});
gulp.group('docs', function() {
gulp.group('build', function() {
gulp.group('dry-run', function() {
gulp.task('apib', function() {});
gulp.task('html', ['~apib'], function() {});
});
gulp.task('apib', function() {});
gulp.task('html', ['~apib'], function() {});
});
gulp.group('watch', function() {
gulp.task('apib', ['^build:dry-run:apib'], function() {});
gulp.task('html', ['^build:dry-run:html'], function() {});
});
});
gulp.task('help', function() {});
gulp.group('empty', function() {});
$ gulp docs:build:dry-run
[16:15:24] Using gulpfile /path/to/gulpfile.js
[16:15:24] Starting 'docs:build:dry-run:apib'...
[16:15:24] Finished 'docs:build:dry-run:apib' after 114 μs
[16:15:24] Starting 'docs:build:dry-run:html'...
[16:15:24] Finished 'docs:build:dry-run:html' after 27 μs
[16:15:24] Starting 'docs:build:dry-run'...
[16:15:24] Finished 'docs:build:dry-run' after 6.96 μs
FAQs
Grouping tasks for gulp
We found that gulp-group demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.

Security News
/Threat Research
A malicious Ruby gem runs a credential-stealing worm during installation, poisons AI coding tools, and can wipe files when a stolen GitHub token is revoked.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.