Browse Source

log.. rewrite.. config-name

master
Lloyd Brookes 8 years ago
parent
commit
08ab65d460
  1. 2
      bin/cli.js
  2. 4
      lib/local-web-server.js
  3. 4
      package.json

2
bin/cli.js

@ -1,4 +1,4 @@
#!/usr/bin/env node
#!/usr/bin/env node --harmony_string_padding
'use strict'
const LocalWebServer = require('../')
const localWebServer = new LocalWebServer()

4
lib/local-web-server.js

@ -11,10 +11,10 @@ const Lws = require('lws')
class LocalWebServer extends Lws {
constructor () {
const path = require('path')
const stack = [ 'lws-log', 'local-web-server-cors', 'local-web-server-json', 'local-web-server-rewrite', 'local-web-server-body-parser', 'local-web-server-blacklist', 'local-web-server-conditional-get', 'local-web-server-mime', 'local-web-server-compress', 'local-web-server-mock-response', 'local-web-server-spa', 'local-web-server-static', 'local-web-server-index' ].map(name => {
const stack = [ 'lws-log', 'local-web-server-cors', 'local-web-server-json', 'lws-rewrite', 'local-web-server-body-parser', 'local-web-server-blacklist', 'local-web-server-conditional-get', 'local-web-server-mime', 'local-web-server-compress', 'local-web-server-mock-response', 'local-web-server-spa', 'local-web-server-static', 'local-web-server-index' ].map(name => {
return path.resolve(__dirname, `../node_modules/${name}`)
})
super({ stack })
super({ stack, 'config-name': 'local-web-server' })
}
getVersion () {

4
package.json

@ -44,10 +44,10 @@
"local-web-server-cors": "file:///Users/lloydb/Documents/lws/cors",
"local-web-server-index": "file:///Users/lloydb/Documents/lws/index",
"local-web-server-json": "file:///Users/lloydb/Documents/lws/json",
"local-web-server-log": "file:///Users/lloydb/Documents/lws/log",
"lws-log": "file:///Users/lloydb/Documents/lws/log",
"local-web-server-mime": "file:///Users/lloydb/Documents/lws/mime",
"local-web-server-mock-response": "file:///Users/lloydb/Documents/lws/mock-response",
"local-web-server-rewrite": "file:///Users/lloydb/Documents/lws/rewrite",
"lws-rewrite": "file:///Users/lloydb/Documents/lws/rewrite",
"local-web-server-spa": "file:///Users/lloydb/Documents/lws/spa",
"local-web-server-static": "file:///Users/lloydb/Documents/lws/static",
"lws": "file:///Users/lloydb/Documents/lws/lws"

Loading…
Cancel
Save