UNPKG

generator-sails-rest-api

Version:

Yeoman generator that provides already configured and optimized Sails REST API with bundle of predefined features

19 lines (14 loc) 347 B
"use strict"; /** * Step 7 * Where installation are run (npm, bower) */ const DEPENDENCIES = { search: ['lodash', 'bluebird'] }; module.exports = function () { const name = this.options['controller-name'].replace(/Controller/, '').toLowerCase(); if (DEPENDENCIES[name]) { this.npmInstall(DEPENDENCIES[name], {save: true}); } };