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.
20 lines
518 B
20 lines
518 B
const Lws = require('lws')
|
|
const path = require('path')
|
|
|
|
class LocalWebServer extends Lws {
|
|
create (options) {
|
|
const usage = require('lws/lib/usage')
|
|
usage.defaults
|
|
.set('an', 'ws')
|
|
.set('av', require('../package').version)
|
|
.set('cd4', 'api')
|
|
options = Object.assign({
|
|
moduleDir: path.resolve(__dirname, `../node_modules`),
|
|
modulePrefix: 'lws-',
|
|
stack: require('./default-stack')
|
|
}, options)
|
|
return super.create(options)
|
|
}
|
|
}
|
|
|
|
module.exports = LocalWebServer
|