Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

runoshun/lein-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lein-watch

A Leiningen plugin to watch directories and run tasks automatically.

Usage

Put [lein-watch "0.0.2"] into the :plugins vector of your project.clj and add :watch configuration to your project.clj.

Example configuration (run compile task when .clj file is changed) :

(defproject sample-project
  ...
  :watch {
    :rate 500 ;; check file every 500ms ('watchtower' is used internally)
    :watchers {
      :compile {
        :watch-dirs ["src"]
        :file-patterns [#"\.clj"]
        :tasks ["compile"]}}}
  ...)

and just run watch task

$ lein watch

See sample-project for more complex usage.

License

Distributed under the MIT License.

Copyright © 2014 runoshun

About

A leiningen plugin to watch files and run tasks automatically.

Resources

License

Stars

Watchers

Forks

Packages

No packages published