Browse files

added devDependencies to generated package.json

  • Loading branch information...
1 parent b67bace commit 835982c561a8766f18338c90b1140716bfdd5bf5 @tj tj committed Jun 4, 2011
Showing with 9 additions and 7 deletions.
  1. +9 −7 bin/express
View
16 bin/express
@@ -348,15 +348,17 @@ function createApplicationAt(path) {
json += ' "name": "application-name"\n';
json += ' , "version": "0.0.1"\n';
json += ' , "private": true\n';
- if (cssEngine || templateEngine) {
- json += ' , "dependencies": {\n';
- json += ' "express": "' + version + '"\n';
- if (cssEngine) json += ' , "' + cssEngine + '": ">= 0.0.1"\n';
- if (templateEngine) json += ' , "' + templateEngine + '": ">= 0.0.1"\n';
- json += ' }\n';
- }
+ json += ' , "dependencies": {\n';
+ json += ' "express": "' + version + '"\n';
+ if (cssEngine) json += ' , "' + cssEngine + '": ">= 0.0.1"\n';
+ if (templateEngine) json += ' , "' + templateEngine + '": ">= 0.0.1"\n';
+ json += ' }\n';
+ json += ' , "devDependencies": {\n'
+ json += ' "expresso": "0.7.x"\n';
+ json += ' }\n';
json += '}';
+
write(path + '/package.json', json);
write(path + '/app.js', app);
});

0 comments on commit 835982c

Please sign in to comment.