A Leiningen plugin to watch and run clojure files which are meant to compiled to another file type. For example: generating html from hiccup, Creating css from garden, or creating .csv from clojure code.
Put [lein-watcher "0.3.0"]
into the :plugins
vector of your project.clj.
Add a configuration to your project.clj specifying the directory to watch, where to place the output and what filetype they should appear as.
Lein watch will watch the directory and call the -main function of whatever files it is monitoring and output then with their name changed in the corresponding directory.
:lein-watcher {:input-dir "src/hello-world/svgs/"
:output-dir "assets/svgs/"
:output-type "svg"}
Then call
$ lein watcher
Copyright © 2014 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.