Skip to content

Commit

Permalink
Raise the main browser on npm start
Browse files Browse the repository at this point in the history
  • Loading branch information
takamin committed May 9, 2016
1 parent 9146a3d commit 66f9192
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ $ npm start
> node ./bin/www
```

Then, open a http://localhost:3000/MZ-700/client.html with your browser.
But this does not work with the Microsoft Edge.
Then, the client emulation page is being served as an URL
[http://localhost:3000/MZ-700/client.html](http://localhost:3000/MZ-700/client.html).
The page will be opened in automatically with your main browser.
Ofcource, you can use another one instead in manually.

The browser requires the features of HTML5.
But, it __does not work with the Microsoft Edge__.


LICENCE
Expand Down
4 changes: 4 additions & 0 deletions bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,8 @@ function onListening() {
? 'pipe ' + addr
: 'port ' + addr.port;
debug('Listening on ' + bind);

/* Open the page */
const opn = require('opn');
opn('http://localhost:3000/MZ-700/client.html');
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mz700-js",
"version": "0.0.3",
"version": "0.0.4",
"description": "Full JavaScript MZ-700 Emulator",
"private": false,
"scripts": {
Expand All @@ -16,6 +16,7 @@
"list-it": "^0.3.3",
"morgan": "~1.6.1",
"node-getopt": "^0.2.3",
"opn": "^4.0.1",
"serve-favicon": "~2.3.0"
},
"devDependencies": {
Expand All @@ -26,7 +27,10 @@
"url": "git+https://github.com/takamin/mz700-js.git"
},
"keywords": [
"emulator", "MZ-700", "MZ700", "Z80"
"emulator",
"MZ-700",
"MZ700",
"Z80"
],
"author": "Koji Takami",
"license": "MIT",
Expand Down

0 comments on commit 66f9192

Please sign in to comment.