Browse Source

deps.. travis

master
Lloyd Brookes 9 years ago
parent
commit
4823289f77
  1. 3
      .travis.yml
  2. 6
      lib/local-web-server.js
  3. 2
      package.json

3
.travis.yml

@ -1,4 +1,3 @@
language: node_js language: node_js
node_js: node_js:
- '5.0'
- '4.2'
- 'node'

6
lib/local-web-server.js

@ -135,12 +135,12 @@ function localWebServer (options) {
if (!log.format) { if (!log.format) {
const streamLogStats = require('stream-log-stats') const streamLogStats = require('stream-log-stats')
log.options.stream = streamLogStats({ refreshRate: 500 }) log.options.stream = streamLogStats({ refreshRate: 500 })
app.use(morgan.middleware('common', log.options))
app.use(morgan('common', log.options))
} else if (log.format === 'logstalgia') { } else if (log.format === 'logstalgia') {
morgan.token('date', logstalgiaDate) morgan.token('date', logstalgiaDate)
app.use(morgan.middleware('combined', log.options))
app.use(morgan('combined', log.options))
} else { } else {
app.use(morgan.middleware(log.format, log.options))
app.use(morgan(log.format, log.options))
} }
} }

2
package.json

@ -43,7 +43,7 @@
"koa-convert": "^1.1.0", "koa-convert": "^1.1.0",
"koa-etag": "^2.1.0", "koa-etag": "^2.1.0",
"koa-json": "^1.1.1", "koa-json": "^1.1.1",
"koa-morgan": "^0.4.0",
"koa-morgan": "^1",
"koa-rewrite": "75lb/rewrite", "koa-rewrite": "75lb/rewrite",
"koa-route": "^3", "koa-route": "^3",
"koa-send": "^3.1.0", "koa-send": "^3.1.0",

Loading…
Cancel
Save