Browse files

Watch macros files as well.

  • Loading branch information...
1 parent 4e13bbd commit 412866800cff827fb719fda1907a3c2b3f1d962c @emezeske committed Dec 30, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/cljsbuild/core.clj
View
5 src/cljsbuild/core.clj
@@ -12,7 +12,10 @@
(.lastModified (io/file file)))
(defn- filter-cljs [files]
- (filter #(= "cljs" (last (string/split % #"\."))) files))
+ (let [ext #(last (string/split % #"\."))]
+ ; Need to return *.clj as well as *.cljs because ClojureScript
+ ; macros are written in Clojure.
+ (filter #(#{"clj" "cljs"} (ext %) ) files)))
(defn- find-dir-cljs [root files]
(for [cljs (filter-cljs files)] (fs/join root cljs)))

0 comments on commit 4128668

Please sign in to comment.