
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
gulp-modular
Advanced tools
# gulp-modular [](https://www.npmjs.com/package/gulp-modular)
Boilerplate gulp tasks for quick project setup.
We were tired of creating and customizing more and more gulpfiles for every new project. We decided to create gulp-modular, a collection of gulp tasks for a quick project setup. gulp-modular ships with a bunch of pre-defined and pre-configured tasks without loosing the flexibility to refine, replace or extend the tasks to suit your individual needs. We currently aim at Web Apps utilizing AngularJS 1.x. However, we are happy to extend gulp-modular to incorporate specifics of other frameworks and libraries. Just submit an issue or even better a PR :)
npm install gulp gulp-modular --save-dev
Copy sample-gulpfile.js from the gulp-modular root to your project and rename it to gulpfile.js.
Open the file and customize the tasks to match your specific project requirements.
// 1) loading gulp and gup-modular
var gulp = require('gulp');
var modular = require('gulp-modular');
// 2) define the gulp-modular configuration
var config = {...};
// 3) pass gulp and configuration to gulp-modular
modular(gulp, config);
Check the DOCUMENTATION for all pre-defined tasks and their configuration options.
Optionally decorate, replace or extend gulp tasks via the usual gulp API.
// Optionally decorate gulp tasks
var stylesTask = gulp.tasks['styles']; // decorate: wrap `stylesTask` and re-assign (cf. replace)
// Optionally extend/replace gulp tasks
gulp.task('styles', changedDependencies, function() { // replace entire task and/or change dependencies
// e.g. define your stylus or less pipeline
});
We use gulp-modular in different private projects. However, a few public examples exist which may help you to set up gulp-modular for your project:
FAQs
Boilerplate gulp tasks for quick project setup.
The npm package gulp-modular receives a total of 8 weekly downloads. As such, gulp-modular popularity was classified as not popular.
We found that gulp-modular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.