SailsGulpify.toggleSailsrc()

Swap .sailsrc, changing from grunt to gulp and back

Use grunt or gulp

Usage

Hover over inputs/exits for more info.

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


// Swap .sailsrc, changing from grunt to gulp and back

SailsGulpify.toggleSailsrc({

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

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

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

sailsrcSrc 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