-
Notifications
You must be signed in to change notification settings - Fork 28
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
option : Live reload triggering ? #3
Comments
Great idea. This should be implemented like in |
I implemented it in fd2f168. It is in the 0.0.4 release. |
Ahah, I was writing a response, and you've already implemented it :-). Thinking about it, it's maybe 2 congruent needs :
Ok, I saw your code, you have taken the 2nd option. Great, it's less bloated than grunt. |
Yeah, I went with option two. This seamed like the right thing to do. Maybe we can build a |
As you see in https://gist.github.com/0gust1/10752096 , setting up connect or tiny-lr is pretty straightforward. For livereload, I'm wondering if a connect+tiny-lr based plugin could be a good solution. As metalsmith-connect-lr + metalsmith-watch (which would take a callback as parameter, or a flag and a port to activate). However, I may miss something, as I don't know metalsmith very well. If you make metalsmith-watch extensible to other needs (sending file over network after build, copying it, commit it, etc.), it will greatly leverage all metalsmith's qualities (simplicity, plugability, extensibility). |
Hello,
Thanks a lot for this metalsmith plugin.
I was looking for a livereload functionnality (because it's so useful when writing front-end code), and I have something working now.
I had to tell the livereload server which file have changed, so I added 1line (and one
require
call for therequest
lib) in therebuilder
function of the metalsmith-watch plugin (after the rebuilt file has been written on disk).How do you think this should be implemented ?
The text was updated successfully, but these errors were encountered: