Permalink
Browse files

Fix package.json bin publication. Improve help prompt.

  • Loading branch information...
omphalos committed Mar 7, 2013
1 parent 0d23c30 commit 31fe543f9cf3a7e86e354f9a046858cc803de03d
Showing with 5 additions and 6 deletions.
  1. +2 −0 bin/universal-reloader
  2. +2 −5 package.json
  3. +1 −1 universal-reloader.js
View
@@ -0,0 +1,2 @@
+#!/usr/bin/env node
+require('../universal-reloader.js')
View
@@ -1,7 +1,7 @@
{
"name": "universal-reloader",
"preferGlobal": true,
- "version": "0.1.1",
+ "version": "0.1.6",
"author": "omphalos",
"description": "Ultra-compatible command-line tool for autoreloading most browsers on file changes",
"contributors": [
@@ -10,10 +10,7 @@
}
],
"bin": {
- "http-server": "./universal-reloader"
- },
- "scripts": {
- "start": "node ./universal-reloader"
+ "universal-reloader": "./universal-reloader.js"
},
"main": "./universal-reloader",
"repository": {
View
@@ -15,8 +15,8 @@ var argv = optimist.
options('mask', { alias: 'm', default: '**/*', describe: 'Pipe-delimited file patterns to watch (e.g., **/*.css|**/*.html)' }).
options('port', { alias: 'p', default: 8080, describe: 'Port to run on'}).
options('recent', { alias: 'r', default: 100, describe: 'Interval of checks to the most-recently modified file' }).
- options('verbose', { alias: 'v', describe: 'Toggle verbose logging' }).
options('url', { alias: 'u', describe: 'Url to auto-reload on file changes (e.g., http://example.com)' }).
+ options('verbose', { alias: 'v', describe: 'Toggle verbose logging' }).
demand('url').
argv

0 comments on commit 31fe543

Please sign in to comment.