Skip to content

Add option to show electron window #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Options:
--mock Path to code to handle requests for mocking a dynamic back-end
--input Input type. Defaults to 'javascript', can be set to 'html'.
--node Enable nodejs apis in electron
--show Show browser window if browser is electron
--basedir Set this if you need to require node modules in node mode
--help Print help
```
Expand Down Expand Up @@ -98,6 +99,7 @@ Returns a duplex stream and starts a webserver.
* `mock`: Path to code to handle requests for mocking a dynamic back-end
* `input`: Input type. Defaults to `javascript`, can be set to `html`.
* `node`: Enable nodejs integration in electron
* `show`: Show browser window if browser is electron
* `basedir`: Set this if you need to require node modules in `node` mode

If only an empty string is written to it, an error will be thrown as there is nothing to execute.
Expand Down
3 changes: 3 additions & 0 deletions bin/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ var argv = optimist
.describe('node', 'Enable nodejs apis in electron')
.alias('n', 'node')

.describe('show', 'Show browser window if browser is electron')
.alias('w', 'show')

.describe('basedir', 'Set this if you need to require node modules in node mode')

.describe('help', 'Print help')
Expand Down