1.3.0 • Published 9 years ago

nw-gulp-tasks v1.3.0

Weekly downloads
87
License
Apache-2.0
Repository
github
Last release
9 years ago

Gulp tasks

Dependency Status

NPM

Neoway's reusable gulp tasks.

Installation

npm install nw-gulp-tasks

Usage

You need import this module and call constructor method with tasks you want enable. Each task have specific options, but have some globals options.

Example of standart call:

var gulp = require('nw-gulp-tasks')({

    // Global vars
    name: 'your-project-slug-name',

    anyGlobalVars: {
        var1: 'ok'
    },
    
    // Tasks
    less: {
        // options here
    },

    scripts: {
        //options here
    }
 
});

Subtasks

Some tasks files can have many subtasks. Maybe you need enable or disable only some subtasks.

Enable/Disable subtasks:

 scripts: {
    jshint: false
 }
  • This disable "scripts:jshint" subtask only