pandeiro / boot-http

A simple HTTP serve task for the Boot build tool
62 stars 34 forks source link

What does watch do? #50

Closed karneaud closed 7 years ago

karneaud commented 8 years ago

Forgive me for me ignorance but what does watch do in

(deftask dev []
  (comp (serve :dir "resources/public" :port 3000)
        (watch)
        (reload :port 9001)
        (cljs-repl :nrepl-opts {:port 9000})
        (cljs :ids #{"js/main"} :source-map true :optimizations :none)
        (target :dir #{"resources/public"})
        ))

does it watch for changes in cljs files? does it triggerr any recompile functions to js?

sinistral commented 8 years ago

The short answer to your question is: yes.

watch is a built-in Boot task. It watches for changes in the fileset and triggers the tasks that follow it when a change is detected.

pandeiro commented 7 years ago

Closing this as it's not specifically related to this package.