generator-sails-rest-api
Version:
Yeoman generator that provides already configured and optimized Sails REST API with bundle of predefined features
20 lines (15 loc) • 335 B
JavaScript
;
/**
* Step 7
* Where installation are run (npm, bower)
*/
const DEPENDENCIES = {
bunyan: ['sails-hook-bunyan'],
winston: ['sails-hook-winston']
};
module.exports = function () {
const logger = this['logger-name'];
if (DEPENDENCIES[logger]) {
this.npmInstall(DEPENDENCIES[logger], {save: true});
}
};