Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gulp-task-loader-recursive
Advanced tools
Easily organize gulp tasks in separate files and folders
Easily organize gulp tasks in separate files and folders. It accepts any file extension that can be required by node.
Please note, that version 1.1.0 breaking changes. Now you should pass gulp as a first argument. See examples in Usage section below.
npm install --save-dev gulp-task-loader-recursive
You can create files and directories under tasks/
folder. For example:
|-- gulpfile.js
|-- tasks/
|-- build/
|-- css.js
|-- js.js
|-- watch/
|-- public.js
|-- build.js
|-- default.js
|-- serve.js
And as a result you'll have following tasks:
build:css
build:js
watch:public
build
default
serve
You can define tasks as follows:
var gulp = require('gulp');
module.exports = function () {
gulp.src('./src')
.pipe(gulp.dest('./dst'))
;
};
Also you can provide tasks dependencies:
module.exports.dependencies = [ 'build:css' ];
To be able to use this tasks you need to add the following to your gulpfile.js:
var gulp = require('gulp');
require('gulp-task-loader-recursive')(gulp);
If you want to use other tasks directory, just pass it as a parameter:
var gulp = require('gulp');
require('gulp-task-loader-recursive')(gulp, './gulp-tasks');
You can also provide prefix for all tasks loaded by this method:
var gulp = require('gulp');
require('gulp-task-loader-recursive')(gulp, null, 'custom:tasks:prefix');
FAQs
Easily organize gulp tasks in separate files and folders
The npm package gulp-task-loader-recursive receives a total of 30 weekly downloads. As such, gulp-task-loader-recursive popularity was classified as not popular.
We found that gulp-task-loader-recursive 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.