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.

17 lines
429 B

8 years ago
8 years ago
  1. 'use strict'
  2. const LwsCliApp = require('lws/lib/cli-app')
  3. /**
  4. * @alias module:local-web-server
  5. */
  6. class WsCliApp extends LwsCliApp {
  7. constructor (options) {
  8. super (options)
  9. /* override default serve command */
  10. this.commands.add(null, require('./command/serve'))
  11. /* add middleware-list command */
  12. this.commands.add('middleware-list', require('./command/middleware-list'))
  13. }
  14. }
  15. module.exports = WsCliApp