Browse Source

ws feature-list

master
Lloyd Brookes 8 years ago
parent
commit
1ef1813ea9
  1. 22
      lib/feature-list.js
  2. 5
      lib/local-web-server.js

22
lib/feature-list.js

@ -0,0 +1,22 @@
class FeatureList {
execute (options) {
const list = [
'lws-log',
'lws-cors',
'lws-json',
'lws-rewrite',
'lws-body-parser',
'lws-blacklist',
'lws-conditional-get',
'lws-mime',
'lws-compress',
'lws-mock-response',
'lws-spa',
'lws-static',
'lws-index'
]
console.log(list)
}
}
module.exports = FeatureList

5
lib/local-web-server.js

@ -27,8 +27,11 @@ class LocalWebServer extends Lws {
'lws-index'
]
const moduleDir = path.resolve(__dirname, `../node_modules`)
options = Object.assign({ stack, 'module-dir': moduleDir, prefix: 'lws-' }, options)
options = Object.assign({ stack, 'module-dir': moduleDir, 'module-prefix': 'lws-' }, options)
super(options)
/* add command */
this.commands.set('feature-list', require('./feature-list'))
}
getVersion () {

Loading…
Cancel
Save