Comparing version 0.9.2 to 0.9.3
{ | ||
"name": "luvi", | ||
"description": "dev server with nifty extras and simple, easy config and api.", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"author": "Zac Anger <zac@zacanger.com> (http://zacanger.com)", | ||
@@ -6,0 +6,0 @@ "license": "WTFPL", |
@@ -1,2 +0,2 @@ | ||
# luvi ღ | ||
# luvi ❦ | ||
@@ -12,2 +12,6 @@ -------- | ||
Originally forked from [freddie](http://npm.im/freddie). | ||
Why? Because freddie did some things that I really liked, but also did a lot of things | ||
that I really don't need, and doesn't do some things that I really do want. | ||
-------- | ||
@@ -116,1 +120,2 @@ | ||
* Default : `undefined`. | ||
ღ luvi (a server) | ||
❦ luvi (a server) | ||
------------------ | ||
usage: | ||
ღ luvi # launch default server | ||
ღ luvi foo bar # start servers `foo` & `bar` | ||
ღ luvi -p 1337 # listen on specified port | ||
ღ luvi -r /path/to/root # serve from specified dir | ||
ღ luvi -v # luvi version | ||
ღ luvi -h # this help | ||
❦ luvi # launch default server | ||
❦ luvi foo bar # start servers `foo` & `bar` | ||
❦ luvi -p 1337 # listen on specified port | ||
❦ luvi -r /path/to/root # serve from specified dir | ||
❦ luvi -v # luvi version | ||
❦ luvi -h # this help | ||
-------------------- | ||
see the readme for config options and api usage ღ | ||
see the readme for config options and api usage ❦ |
@@ -30,3 +30,3 @@ #!/usr/bin/env node | ||
if (argv._.length) { | ||
servers = filter(servers, (item) => { | ||
servers = filter(servers, item => { | ||
return item && argv._.indexOf(item.name) >= 0 | ||
@@ -36,4 +36,5 @@ }) | ||
each(servers, (server) => { | ||
each(servers, server => { | ||
luvi(mix(server, argv)) | ||
}) | ||
@@ -35,3 +35,3 @@ 'use strict' | ||
findPort(config.port, (err, port) => { | ||
if(err){ | ||
if (err) { | ||
throw err | ||
@@ -38,0 +38,0 @@ } |
@@ -29,1 +29,2 @@ 'use strict' | ||
module.exports = findPort | ||
@@ -11,3 +11,3 @@ 'use strict' | ||
return fs.readFileSync(file, {encoding : 'utf8'}) | ||
} catch(e){ | ||
} catch(e) { | ||
return | ||
@@ -14,0 +14,0 @@ } |
@@ -16,3 +16,3 @@ 'use strict' | ||
return JSON.parse(content) | ||
} catch(e){ | ||
} catch(e) { | ||
return console.error('error parsing JSON:', file) | ||
@@ -23,1 +23,2 @@ } | ||
module.exports = readJSON | ||
Sorry, the diff of this file is not supported yet
19171
19
120