fsrun is a simple high order lein task that run some other tasks when a file modification occurs. There is no need to write your own file notifier plugin anymore :)
Use this for user-level plugins:
Put [fsrun "0.1.2"]
into the :plugins
vector of your
:user
profile, or if you are on Leiningen 1.x do lein plugin install testrun 0.1.2
.
Use this for project-level plugins:
Put [fsrun "0.1.2"]
into the :plugins
vector of your project.clj.
Originally i've created it to be able to run my clojurescript tests automatically on file change:
$ lein fschange /compiled/js/file.js cljsbuild test
fsrun accepts also globbing path so you can
$ lein fschange "/compiled/js/*.js" cljsbuild test
Note That we used double quotes around globbing path, it is required for now because of shell expansion that occurs(Till we made it accept more than one paths on command line).
Distributed under the Eclipse Public License, the same as Clojure.