0.1.1 • Published 11 years ago

jive v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

#Jive Live.js is a nice tool for refreshing assets in the browser live. However, it does this using a polling technique which fills the Chrome Dev Tools and my server logs and feels too old-school.

LiveReload is nice and all but it sends a message with the source filename to the client as if the mapping were 'styles/footer.styl' -> 'styles/footer.css' where in reality the footer.styl gets included in a main.styl and then probably put in a different folder. This meant that LR never seemed to work for me, but I liked the idea of sockets.

So I just put together Jive.

Give Jive the filenames you want it to watch over stdio. When one of these files changes, it figures out whether this file would affect html, css, or js (using the file extension). It then sends a message to the client to reload all resources of that type (html, css, or js);

##Usage

npm install -g jive

echo 'styles/main.styl scripts/hello.coffee' | jive

###Or it could go in a makefile

FILES=$(shell find -type f)
watch: $(FILES)
		echo $(FILES) | jive

.PHONY: watch

####Made possible by Live.js go check out http://livejs.com

0.1.1

11 years ago

0.1.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago