Skip to content

Commit

Permalink
automatically open webdash url on serve
Browse files Browse the repository at this point in the history
  • Loading branch information
bardiarastin committed Mar 30, 2018
1 parent 6357482 commit 0b9797d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"filehound": "^1.16.2",
"is-global": "^0.1.0",
"lodash": "^4.17.0",
"opn": "^5.3.0",
"ora": "^2.0.0",
"pkg-dir": "^2.0.0",
"resize-observer-polyfill": "^1.5.0",
Expand Down
3 changes: 2 additions & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
const chalk = require('chalk');

const opn = require('opn')
require('./checks');

const serveOptions = yargs => {
Expand All @@ -23,6 +23,7 @@ const serveCommand = argv => {
const url = chalk.underline(`http://${host}:${port}`);
const message = chalk.keyword('green').bold(`Webdash running on ${url}!`);
console.log(message);
opn(url)
});
};

Expand Down

0 comments on commit 0b9797d

Please sign in to comment.