Support node scripts in BROWSER (#1590)

* Support node scripts in BROWSER

Modify OpenBrowser.js to run node scripts specified with the BROWSER environment
variable . If the value of the BROWSER environment variable ends with '.js' a
child process is spawned to execute the script with node.js. Any
arguments passed to npm start are also passed to this script, as well as
the url where the app is served.
The command executed in the child process is:

node <pathToScript> [OPTIONS] <url>

Update User Guide.

* Tweak code style

* Pin dep

* Comment out 0.10 docs
This commit is contained in:
Gabriel Aumala
2017-05-15 23:25:04 +00:00
committed by Dan Abramov
parent d6dbfc0353
commit 8f028ae4b5
3 changed files with 65 additions and 7 deletions

View File

@@ -32,6 +32,7 @@
"anser": "1.1.0",
"babel-code-frame": "6.20.0",
"chalk": "1.1.3",
"cross-spawn": "4.0.2",
"escape-string-regexp": "1.0.5",
"filesize": "3.3.0",
"gzip-size": "3.0.0",