formatted app.js, updated jshintrc to include node

v1.18.x
psychobunny 12 years ago
parent 1b9e451a6f
commit c789f4230d

@ -67,7 +67,7 @@
"dojo" : false, // Dojo Toolkit
"jquery" : true, // jQuery
"mootools" : false, // MooTools
"node" : false, // Node.js
"node" : true, // Node.js
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
"prototypejs" : false, // Prototype and Scriptaculous
"rhino" : false, // Rhino

@ -32,12 +32,12 @@ global.env = process.env.NODE_ENV || 'production';
winston.remove(winston.transports.Console);
winston.add(winston.transports.Console, {
colorize:true
colorize: true
});
winston.add(winston.transports.File, {
filename:'error.log',
level:'error'
filename: 'error.log',
level: 'error'
});
// TODO: remove once https://github.com/flatiron/winston/issues/280 is fixed
@ -53,7 +53,9 @@ winston.info('');
if (fs.existsSync(__dirname + '/config.json') && (!nconf.get('setup') && !nconf.get('upgrade'))) {
// Load server-side config
nconf.file({ file: __dirname + '/config.json'});
nconf.file({
file: __dirname + '/config.json'
});
var meta = require('./src/meta.js');
@ -93,7 +95,9 @@ if (fs.existsSync(__dirname + '/config.json') && (!nconf.get('setup') && !nconf.
});
} else if (nconf.get('upgrade')) {
nconf.file({ file: __dirname + '/config.json'});
nconf.file({
file: __dirname + '/config.json'
});
var meta = require('./src/meta.js');
meta.configs.init(function() {

Loading…
Cancel
Save