From cf99c0cb19716a9432984d31d23aad04a2b7cb34 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Sun, 13 Apr 2014 11:41:39 -0400 Subject: [PATCH] Generator code cleanup --- minimizer.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/minimizer.js b/minimizer.js index c9d057347e3..fd9dd76ec48 100644 --- a/minimizer.js +++ b/minimizer.js @@ -21,12 +21,9 @@ inquirer.prompt({ type: 'list', name: 'category', message: 'Hackathon Starter Generator:', - choices: ['Authentication', 'API Examples', 'Exit'], - filter: function(val) { - return val.toLowerCase(); - } + choices: ['Authentication', 'Exit'] }, function(answer) { - if (answer.category === 'authentication') { + if (answer.category === 'Authentication') { inquirer.prompt({ type: 'checkbox', message: 'Select Authentication Providers:', @@ -45,11 +42,6 @@ inquirer.prompt({ return 'You must choose at least one authentication method.'; } return true; - }, - filter: function(val) { - return _.map(val, function(auth) { - return auth.toLowerCase(); - }); } }, function(answer) { var facebookStrategyRequire = "var FacebookStrategy = require('passport-facebook').Strategy;"; @@ -134,7 +126,7 @@ inquirer.prompt({ var index; - if (_.contains(answer.auth, 'facebook')) { + if (_.contains(answer.auth, 'FCodeacebook')) { if (passportConfig.indexOf(facebookStrategyRequire) < 0) { // config/passport.js (+)