Skip to content
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

feature: add opn to open browser in gulp script upon start #281

Closed
niftylettuce opened this issue Sep 8, 2017 · 4 comments
Closed

feature: add opn to open browser in gulp script upon start #281

niftylettuce opened this issue Sep 8, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@niftylettuce
Copy link
Collaborator

one time only when a user yarn start's it should use the opn package to run await opn(config.urls.web, { wait: false }); in template/gulpfile.js so that it opens the user's browser for them!

@niftylettuce
Copy link
Collaborator Author

also, this should only occur for development environment config.env === 'development'

@OmgImAlexis
Copy link
Contributor

opn shouldn't run if nodemon hits an error.

I think we can use the nodemon api to check before running opn for the first time.

@pablopunk
Copy link
Contributor

Got it. I was out for the weekend I'll check it when I get home.

@pablopunk
Copy link
Contributor

Should we use gulp-nodemon to check for errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants