(defn init-watcher! []
(reset! *cljs-info (static/get-cljs-nses-and-vars))
(hawk/watch! [{:paths [(.getCanonicalPath (io/file "."))]
:handler (fn [ctx {:keys [kind file]}]
(when (#{:create :modify} kind)
(when (str/ends-with? (.getName file) ".cljs")
(try
(swap! *cljs-info #(static/read-cljs-file % file))
(catch Exception _))))
ctx)}]))