
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
gulp-auto-task
Advanced tools
Automatically create gulp tasks from node modules from a glob pattern.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Automatically create gulp tasks from node modules from a glob pattern.
npm install gulp-auto-task
require('gulp-auto-task');
Simply call it as a function passing in your a glob pattern and an optional options object.
var gulp = require('gulp');
var gulpAutoTask = require('./build/lib/auto-task');
gulpAutoTask('{*,**/*}.js', {
// This is prepended to the glob pattern and excluded from the task name.
base: './build/gulp',
// The gulp instance you want it applied to. If not specified this tries
// to `require('gulp')` for you.
gulp: gulp
});
And in ./build/gulp/my-task.js
module.exports = function myTask () {
// do something tasky
};
Several reasons.
gulp.task
inside of your module.gulpfile
.You can define dependencies for a task in the normal, could-be-better, Gulp way using names. To do this, add a deps
array to your task function:
function myTask () {
// tasky task
}
myTask.deps = ['task1', 'task2'];
However, this is not recommended. Why you ask? Because:
If you don't mind those things, that's cool. It's there for you to use. But... there's a better way.
Mac gives you a way to chain a bunch of Gulp streams in parallel, or in series, using only the task function you've defined. The only thing you've got to make sure that you do is to return your stream from your task and it can be reused wherever.
Check out the build example for more information.
FAQs
Automatically create gulp tasks from node modules from a glob pattern.
The npm package gulp-auto-task receives a total of 47 weekly downloads. As such, gulp-auto-task popularity was classified as not popular.
We found that gulp-auto-task 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.
Did you know?
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.