Liking cljdoc? Tell your friends :D

watchtower.core


*last-pass*clj

source

changed-fnclj

(changed-fn funcs)
source

compile-watcherclj

(compile-watcher {:keys [filters rate dirs on-change]})
source

default-filterclj

(default-filter f)
source

extensionsclj

(extensions & exts)

Create a file-filter for the given extensions.

Create a file-filter for the given extensions.
sourceraw docstring

file-filterclj

(file-filter w filt)

Add a filter to a watcher. A filter is just a function that takes in a java.io.File and returns truthy about whether or not it should be included.

Add a filter to a watcher. A filter is just a function that takes in a
java.io.File and returns truthy about whether or not it should be included.
sourceraw docstring

get-filesclj

(get-files dirs filters)
source

ignore-dotfilesclj

(ignore-dotfiles f)

A file-filter that removes any file that starts with a dot.

A file-filter that removes any file that starts with a dot.
sourceraw docstring

modified?clj

(modified? f)
source

on-changeclj

(on-change w func)

When files are changed, execute a function that takes in a seq of the changed file objects.

When files are changed, execute a function that takes in a seq of the changed
file objects.
sourceraw docstring

rateclj

(rate w r)

Set the rate of polling.

Set the rate of polling.
sourceraw docstring

updated?-fnclj

(updated?-fn dirs filters)
source

watchclj

(watch w)

Execute a watcher map

Execute a watcher map
sourceraw docstring

watchercljmacro

(watcher dirs & body)

Create a watcher for the given dirs (either a string or coll of strings), applying the given transformations.

Transformations available: (rate) (file-filter) (on-change)

Create a watcher for the given dirs (either a string or coll of strings), applying
the given transformations.

Transformations available: (rate) (file-filter) (on-change)
sourceraw docstring

watcher*clj

(watcher* dirs)

Create a watcher map that can later be passed to (watch)

Create a watcher map that can later be passed to (watch)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close