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.
19 lines
399 B
19 lines
399 B
'use strict'
|
|
const Cli = require('../../')
|
|
const liveReload = require('koa-livereload')
|
|
|
|
const ws = new Cli()
|
|
ws.addLogging('dev')
|
|
.add({
|
|
optionDefinitions: {
|
|
name: 'live-reload', type: Boolean,
|
|
description: 'Add live reload.'
|
|
},
|
|
middleware: function (options) {
|
|
if (options['live-reload']) {
|
|
return liveReload()
|
|
}
|
|
}
|
|
})
|
|
.addStatic()
|
|
.listen()
|