New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

kisphp-gulp-commander

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kisphp-gulp-commander

gulp commander

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

Build Status

Kisphp Gulp Commander

Tool to allow modularization of gulp tasks

Installation

npm install --save kisphp-gulp-commander

Usage

Create gulpfile.js file with the following content:

let gulp = require('gulp');
let requireDir = require('require-dir');

let GR = require('kisphp-gulp-commander');

// load tasks
requireDir('./gulp-tasks', { recurse: true });

// run tasks (all chain)
gulp.task('default', GR.getTasks());

// run watch task
gulp.task('watch', GR.getWatch());

// list all registered tasks
gulp.task('list', () => {
    GR.displayList();
});

Create ./gulp-tasks/scss.js file and add css related gulp tasks. At the end of the file add:


// here you define scss tasks

let GR = require('kisphp-gulp-commander');

GR.addTask('scss'); // here you register the main scss task
GR.addWatch('watch:scss'); // here you register the watch task

Do the same for other tasks like: javascript, copy-files, etc

If you have multiple tasks you can provide them as an array

GR.addTask([
    'scss:external',
    'scss:local'
]);
GR.addWatch([
    'watch:scss:local',
    'watch:scss:admin'
]);

Now execute gulp command and it will run all registered commands

Keywords

gulp

FAQs

Package last updated on 11 May 2017

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