You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
293 B

9 years ago
  1. 'use strict'
  2. const Koa = require('koa')
  3. const localWebServer = require('../')
  4. const liveReload = require('koa-livereload')
  5. const convert = require('koa-convert')
  6. const app = new Koa()
  7. const ws = localWebServer({
  8. log: { format: 'dev' }
  9. })
  10. app.use(liveReload())
  11. app.use(ws)
  12. app.listen(8000)