a simple watchd server and client
This is a nodejs module which contains a watchd server and a client.
uglifyjs to compile them into one. Certainly you could do it by hand:
uglifyjs *.js > my.js
Then you include my.js in your html file.
It is fine. But everytime you change the original file, you need to redo this work. That is really boring.
There is also similar utilities, for example, you could use
compass to watch .scss files.
But what about a common server for doing this???
So that's the idea!!!
Cause it is a nodejs module, so you need to install nodejs first. And then install it by npm just like a normal nodejs module.
npm install node-watchd
start the server
use command line tool to add to the watch list, use -h to view help
$ watch -h
yarco@me node-watchd$ ./bin/watch -l Key File Action yarco@me node-watchd$ ./bin/watch tmp.js tmp.txt -a 'cat tmp.js tmp.txt > all.txt' Key File Action 0 /Users/yarco/Sites/js/node-watchd/tmp.js cat tmp.js tmp.txt > all.txt 1 /Users/yarco/Sites/js/node-watchd/tmp.txt cat tmp.js tmp.txt > all.txt yarco@me node-watchd$ ./bin/watch -r 1 Key File Action 0 /Users/yarco/Sites/js/node-watchd/tmp.js cat tmp.js tmp.txt > all.txt
You could contact email@example.com for this extension. Or for programming related things, whatever.
All rights reserved by human.