stats.. deps

This commit is contained in:
Lloyd Brookes
2017-06-26 14:24:48 +01:00
parent 583b9dd724
commit 4dc29ecd19
3 changed files with 7 additions and 1 deletions

View File

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

View File

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

View File

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