Skip to content

Commit

Permalink
move application to last position in start script
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspeklak committed Feb 20, 2013
1 parent f23c744 commit 3f23969
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/prompt/app.js
Expand Up @@ -18,7 +18,7 @@ module.exports = function(defaults, override, cb) {
'devDependencies' : { description: 'devDependencies'.green, default: 'mocha: *' },
'mongoSessionStore': { description: 'use mongodb as session store'.green, default: 'yes' },
'i18n' : { description: 'use i18n internationalization module'.green, default: 'no' },
'scripts' : { description:'scripts/start'.green, default: 'nodemon app.js -wmodels -wconfig -wroutes' },
'scripts' : { description:'scripts/start'.green, default: 'nodemon -wmodels -wconfig -wroutes app.js' },
'repository' : { description:'repository'.green }
}
}, function(err, result) {
Expand All @@ -28,13 +28,13 @@ module.exports = function(defaults, override, cb) {

var rewriteTruthyInput = function(property) {
if (result[property]) {
result[property] = (result[property].toLowerCase() == 'yes' || result[property].toLowerCase() == 'y');
result[property] = (result[property].toLowerCase() == 'yes' || result[property].toLowerCase() == 'y');
}
}

rewriteTruthyInput('i18n');
rewriteTruthyInput('mongoSessionStore');

if (result.i18n && result.dependencies.indexOf('i18n-2') == -1) {
result.dependencies += ', i18n-2: 0.4.x';
}
Expand Down

0 comments on commit 3f23969

Please sign in to comment.