SailsGulpify.createGulpEngine()

Modifies core sails files ading the ability to toggle between grunt and gulp via cli argument

Adds the gulp hook to api/hooks/gulp

Usage

Hover over inputs/exits for more info.

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


// Modifies core sails files ading the ability to toggle between grunt and gulp via cli argument

SailsGulpify.createGulpEngine({

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

outputDir: './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'
outputDir 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