Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
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 15 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.