![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
gulp-auto-task
Advanced tools
Automatically create gulp tasks from node modules from a glob pattern.
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.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.