Skip to content

Commit

Permalink
Merge pull request #51 from ArtskydJ/document-static-option
Browse files Browse the repository at this point in the history
Document the static option
  • Loading branch information
juliangruber authored Dec 20, 2016
2 parents 3af535e + 136b29c commit db5385d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ ok 1 true
Increase this value if tests finish without all tests being run.
* `port (Number)`: If you specify a port it will wait for you to open a browser
on `http://localhost:<port>` and tests will be run there.
* `static (String)`: Serve static files from this directory.
* `browser (String)`: Browser to use. Defaults to `electron`. Available if installed:
* `chrome`
* `firefox`
Expand All @@ -103,6 +104,7 @@ browserify [opts] [files] | tape-run [opts]
Options:
--wait Timeout for tap-finished
--port Wait to be opened by a browser on that port
--static Serve static files from this directory
--browser Browser to use. Always available: electron. Available if installed: chrome, firefox, ie, phantom, safari [default: "electron"]
--render Command to pipe tap output to for custom rendering
--help Print usage instructions
Expand Down
3 changes: 3 additions & 0 deletions bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ var argv = optimist
.describe('port', 'Wait to be opened by a browser on that port')
.alias('p', 'port')

.describe('static', 'Serve static files from this directory')
.alias('s', 'static')

.describe('browser', 'Browser to use. ' +
'Always available: electron. ' +
'Available if installed: chrome, firefox, ie, phantom, safari')
Expand Down

0 comments on commit db5385d

Please sign in to comment.