-
Notifications
You must be signed in to change notification settings - Fork 105
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
Turning on LiveReload by Default #220
Comments
I have a lot of npm scripts with |
@fibo Nope, it would not break. Also, you should use budo as a devDependency in your npm scripts, so that if/when I push a major breaking change, your scripts will still run fine since they depended on an earlier (major) version of budo. |
I run regl tests oftentimes, which are really expensive, and enabling Enabling |
I do not think I am going to end up implementing this after all. Yes, it's a bit annoying to type out There are also some good reasons to keep it off by default, as @dy points out. Basically, budo is a browserify server by default, and optionally also a dev/LiveReload server with the |
The response is positive, so I think I will turn on LiveReload by default so that you won't need to specify
--live
. Most of the time when using budo, you will want a LiveReload server.So the below will be all you need to start:
Since this is a major version bump, I am also going to remove (or deprecate) the
live()
andwatch()
functions in favour of passing options to budo's constructor, and adding a new function calledsetLiveReload
in the rare case that somebody needs to change the options after connection. The reason thelive()
andwatch()
functions are currently separate, is so that you can set up a LiveReload server without a file watcher, and vice versa, but I've found the added complexity is not worth the hassle for the vast majority of users.So it could look like this:
This will also resolve the #219 issue.
The text was updated successfully, but these errors were encountered: