Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

gulp-modularize

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-modularize

Simple, unopinionated gulp tasks modularization.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-modularize

Simple, unopinionated gulp tasks modularization.

Install

npm install gulp-modularize

Usage

In your gulpfile.js:

// ./gulpfile.js
var gulp = require('gulp');
var modularize = require('gulp-modularize');

modularize(gulp, './path/to/tasks/');

Each module in the tasks directory is required, and passed an instance of gulp.

For example:

// ./path/to/tasks/mytask.js
module.exports = function (gulp) {

  gulp.task('mytask', function () {
    // do stuff
  });

};

It is up to you to decide how many tasks a module defines, and what they are called.

However, I recommend having each module at least create one task with the same name as the module.

Keywords

gulp

FAQs

Package last updated on 17 Aug 2015

Did you know?

Socket

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.

Install

Related posts