Browse Source

stats.. deps

master
Lloyd Brookes 8 years ago
parent
commit
4dc29ecd19
  1. 3
      lib/command/serve.js
  2. 3
      lib/local-web-server.js
  3. 2
      package.json

3
lib/command/serve.js

@ -7,6 +7,9 @@ const path = require('path')
class WsServe extends ServeCommand { class WsServe extends ServeCommand {
execute (options, argv) { execute (options, argv) {
const usage = require('lws/lib/usage')
usage.defaults.set('an', 'ws')
usage.defaults.set('cd4', 'cli')
options = { options = {
stack: [ stack: [
'lws-log', 'lws-log',

3
lib/local-web-server.js

@ -3,6 +3,9 @@ const path = require('path')
class LocalWebServer extends Lws { class LocalWebServer extends Lws {
create (options) { create (options) {
const usage = require('lws/lib/usage')
usage.defaults.set('an', 'ws')
usage.defaults.set('cd4', 'api')
options = Object.assign({ options = Object.assign({
moduleDir: path.resolve(__dirname, `../node_modules`), moduleDir: path.resolve(__dirname, `../node_modules`),
modulePrefix: 'lws-', modulePrefix: 'lws-',

2
package.json

@ -32,7 +32,7 @@
"repository": "https://github.com/lwsjs/local-web-server", "repository": "https://github.com/lwsjs/local-web-server",
"author": "Lloyd Brookes <75pound@gmail.com>", "author": "Lloyd Brookes <75pound@gmail.com>",
"dependencies": { "dependencies": {
"lws": "^1.0.0-pre2.3",
"lws": "^1.0.0-pre2.4",
"lws-blacklist": "^0.2.1", "lws-blacklist": "^0.2.1",
"lws-body-parser": "^0.2.1", "lws-body-parser": "^0.2.1",
"lws-compress": "^0.2.1", "lws-compress": "^0.2.1",

Loading…
Cancel
Save