SailsGulpify.createGulpFile()

Creates a gulp file from template in the root project directory

Usage

Hover over inputs/exits for more info.

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


// Creates a gulp file from template in the root project directory

SailsGulpify.createGulpFile({

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

outputDir: '../../../gulpfile.js',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

gulpFileSrcPath 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.

'../../../gulpfile.js'

Exits

error

An unexpected error occurred.

success

OK.

N/A