Skip to content

ImmutableLabs/lein-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

lein-watcher

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.

Usage

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

License

Copyright © 2014 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

For watching and compiling clojure files to another format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published