UNPKG

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
"use strict"; /** * 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}); } };