File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " <%= _.slugify(appname) %>" ,
3
3
"version" : " 0.0.0" ,
4
4
"dependencies" : {
5
- "express" : " ~3.4.3" <% if (mongo) { %> ,
6
- "lodash" : " ~2.4.1" ,
7
- "mongoose" : " ~3.5.5" <% } %><% if (mongo && mongoPassportUser) { %>,
5
+ "express" : " ~3.4.3" ,
6
+ "lodash" : " ~2.4.1" <% if (mongo) { %> ,
7
+ "mongoose" : " ~3.5.5" <% } %><% if (mongoPassportUser) { %>,
8
8
"mongoose-unique-validator" : " ~0.3.0" ,
9
9
"connect-mongo" : " ~0.4.0" ,
10
10
"passport" : " latest" ,
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ var express = require('express')<% if (mongo) { %>,
12
12
// Default node environment to development
13
13
process . env . NODE_ENV = process . env . NODE_ENV || 'development' ;
14
14
15
- < % if ( mongo ) { % > / / Application Config
16
- var config = require ( './lib/config/config' ) ;
15
+ // Application Config
16
+ var config = require ( './lib/config/config' ) ; < % if ( mongo ) { % >
17
17
18
18
// Connect to database
19
19
var db = mongoose . connect ( config . mongo . uri , config . mongo . options ) ;
@@ -25,8 +25,8 @@ fs.readdirSync(modelsPath).forEach(function (file) {
25
25
} ) ;
26
26
27
27
// Populate empty DB with sample data
28
- require ( './lib/config/dummydata' ) ;
29
- < % } % > < % if ( mongoPassportUser ) { % >
28
+ require ( './lib/config/dummydata' ) ; < % } % > < % if ( mongoPassportUser ) { % >
29
+
30
30
// Passport Configuration
31
31
require ( './lib/config/passport' ) ( ) ; < % } % >
32
32
You can’t perform that action at this time.
0 commit comments