|
@ -4,8 +4,10 @@ const path = require('path') |
|
|
class LocalWebServer extends Lws { |
|
|
class LocalWebServer extends Lws { |
|
|
create (options) { |
|
|
create (options) { |
|
|
const usage = require('lws/lib/usage') |
|
|
const usage = require('lws/lib/usage') |
|
|
usage.defaults.set('an', 'ws') |
|
|
|
|
|
usage.defaults.set('cd4', 'api') |
|
|
|
|
|
|
|
|
usage.defaults |
|
|
|
|
|
.set('an', 'ws') |
|
|
|
|
|
.set('av', require('../package').version) |
|
|
|
|
|
.set('cd4', 'api') |
|
|
options = Object.assign({ |
|
|
options = Object.assign({ |
|
|
moduleDir: path.resolve(__dirname, `../node_modules`), |
|
|
moduleDir: path.resolve(__dirname, `../node_modules`), |
|
|
modulePrefix: 'lws-', |
|
|
modulePrefix: 'lws-', |
|
|