LocalSailsApps.ensureDependencies()

Ensure that the minimal dependencies necessary to run a Sails app are present in the package.json

Usage

Hover over inputs/exits for more info.

var LocalSailsApps = require('machinepack-local-sails-apps');


// Ensure that the minimal dependencies necessary to run a Sails app are present in the package.json

LocalSailsApps.ensureDependencies({

destination: '/Users/mikermcneil/foo/',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

destination required

The path to the app (if path is not absolute, will be resolved from the current working directory)

'/Users/mikermcneil/foo/'

Exits

error

An unexpected error occurred.

success

OK.