SailsGulpify.createGulpTasks()

Creates the gulp task folder and all related task files

Usage

Hover over inputs/exits for more info.

var SailsGulpify = require('machinepack-sailsgulpify');


// Creates the gulp task folder and all related task files

SailsGulpify.createGulpTasks({

gulpFolderSrcPath: './templates/gulpfile.js',

outputFolderDir: './foo',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Nothing exists at the provided LESS source directory path.

doesNotExist: function (result) {

 

},

// OK.

success: function () {

 

},

});

Inputs

gulpFolderSrcPath required

The directory where the gulp file lives. If not specified as an absolute path, this will be resolved relative to the current working directory.

'./templates/gulpfile.js'
outputFolderDir required

The path to the directory where gulp file should be placed.

'./foo'

Exits

error

An unexpected error occurred.

doesNotExist

Nothing exists at the provided LESS source directory path.

'abc123'
success

OK.

N/A