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

8 years ago
  1. const Lws = require('lws')
  2. const path = require('path')
  3. class LocalWebServer extends Lws {
  4. create (options) {
  5. const usage = require('lws/lib/usage')
  6. usage.defaults
  7. .set('an', 'ws')
  8. .set('av', require('../package').version)
  9. .set('cd4', 'api')
  10. options = Object.assign({
  11. moduleDir: path.resolve(__dirname, `../node_modules`),
  12. modulePrefix: 'lws-',
  13. stack: require('./default-stack')
  14. }, options)
  15. return super.create(options)
  16. }
  17. }
  18. module.exports = LocalWebServer