Created
March 15, 2015 20:27
-
-
Save voytech/3bf374bcf81a023184b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn delete-all-override | |
[dir] | |
(if (file/exists? dir) | |
(do (println (str "TRYING TO DELETE " dir)) | |
(mapv #(.delete %) (reverse (rest (file-seq (io/file dir)))))))) | |
(deftask dev | |
[] | |
(with-redefs [boot.file/delete-file delete-file-override | |
boot.file/delete-all delete-all-override] | |
(comp (watch) (speak) (hoplon) (reload) (cljs)))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment