From 4a881105ff23cd560daec4e22debef4755243569 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Fri, 16 Jan 2015 07:17:31 -0600 Subject: [PATCH] Freshen up of package.json --- app.js | 15 ++++++++++----- package.json | 26 +++++++++++++++++++------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/app.js b/app.js index 22f2f2f6..999b56d2 100755 --- a/app.js +++ b/app.js @@ -381,12 +381,17 @@ function findCompilers() { findCompilers(); // WebServer. -var webServer = connect(); +var webServer = connect(), + sFavicon = require('serve-favicon'), + sStatic = require('serve-static'), + bodyParser = require('body-parser'), + logger = require('morgan'); + webServer - .use(connect.logger()) - .use(connect.favicon('static/favicon.ico')) - .use(connect.static('static')) - .use(connect.bodyParser()) + .use(logger('combined')) + .use(sFavicon('static/favicon.ico')) + .use(sStatic('static')) + .use(bodyParser.urlencoded({extended:true})) .use('/client-options.js', getClientOptions) .use('/info', getInfo) .use('/sources', getSources) diff --git a/package.json b/package.json index 2739309c..8c8aae3e 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,31 @@ { - "author": "Matt Godbolt ", "name": "gcc-explorer", - "description": "Investigate what on earth GCC does", - "version": "0.0.2", + "description": "Interactively investigate compiler output", + "author": { + "name": "Matt Godbolt", + "email": "matt@godbolt.org", + "url": "http://xania.org" + }, + "repository": { + "type": "git", + "url": "mattgodbolt/gcc-explorer" + }, + "version": "0.0.3", "engines": { "node": "0.10.x" }, "main": "./app.js", "dependencies": { - "async": "0.7.x", - "connect": "2.14.x", + "async": "0.9.x", + "body-parser": "1.10.x", + "connect": "3.3.x", "fs-extra": "0.8.x", "lru-cache": "2.5.x", - "nopt": "1.0.x", - "temp": "0.7.x" + "morgan": "1.5.x", + "nopt": "3.0.x", + "serve-favicon": "2.2.x", + "serve-static": "1.8.x", + "temp": "0.8.x" }, "devDependencies": { "supervisor": "0.3.1"