ws feature-list
This commit is contained in:
22
lib/feature-list.js
Normal file
22
lib/feature-list.js
Normal 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
|
@ -27,8 +27,11 @@ class LocalWebServer extends Lws {
|
|||||||
'lws-index'
|
'lws-index'
|
||||||
]
|
]
|
||||||
const moduleDir = path.resolve(__dirname, `../node_modules`)
|
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)
|
super(options)
|
||||||
|
|
||||||
|
/* add command */
|
||||||
|
this.commands.set('feature-list', require('./feature-list'))
|
||||||
}
|
}
|
||||||
|
|
||||||
getVersion () {
|
getVersion () {
|
||||||
|
Reference in New Issue
Block a user