Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Remove unnecessary dev dependencies. Upgrade dependencies. (#34)
Browse files Browse the repository at this point in the history
* Remove unnecessary dev dependencies. Upgrade dependencies.

* Update version
  • Loading branch information
geneh authored May 6, 2019
1 parent 155688f commit f66f3c1
Show file tree
Hide file tree
Showing 5 changed files with 987 additions and 3,123 deletions.
27 changes: 0 additions & 27 deletions Gruntfile.js

This file was deleted.

23 changes: 11 additions & 12 deletions bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Licensed under the MIT License.

const app = require('../app');
const debug = require('debug')('g:server');
const debugInitialization = require('debug')('oss-initialize');
const init = require('express-init');
const painlessConfigResolver = require('painless-config-resolver')();
Expand Down Expand Up @@ -31,7 +30,7 @@ app.set('port', port);

debugInitialization('initializing app & configuration');

painlessConfigResolver.resolve((configurationError, config) => {
painlessConfigResolver.resolve({ directoryName: 'config' }, (configurationError, config) => {
app.initializeApplication(config, configurationError, (error) => {
if (error) throw error;

Expand Down Expand Up @@ -60,16 +59,16 @@ painlessConfigResolver.resolve((configurationError, config) => {

// handle specific listen errors with friendly messages
switch (error.code) {
case 'EACCES':
console.error(bind + ' requires elevated privileges');
process.exit(1);
break;
case 'EADDRINUSE':
console.error(bind + ' is already in use');
process.exit(1);
break;
default:
throw error;
case 'EACCES':
console.error(bind + ' requires elevated privileges');
process.exit(1);
break;
case 'EADDRINUSE':
console.error(bind + ' is already in use');
process.exit(1);
break;
default:
throw error;
}
}

Expand Down
Loading

0 comments on commit f66f3c1

Please sign in to comment.