ws feature-list

This commit is contained in:
Lloyd Brookes
2017-05-23 11:35:31 +01:00
parent 07294f3cbc
commit 1ef1813ea9
2 changed files with 26 additions and 1 deletions

22
lib/feature-list.js Normal file
View File

@ -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

View File

@ -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 () {