Skip to content

Instantly share code, notes, and snippets.

@mudphone

mudphone/build.boot

Created Oct 29, 2017
Embed
What would you like to do?
(set-env!
:source-paths #{"src"}
:dependencies '[])
(require '[boot.core :as c]
'[clojure.java.io :as io])
(deftask my-count
"Count records"
[]
(let [tmp (c/tmp-dir!)]
(fn middleware [next-handler]
(fn handler [fileset]
(c/empty-dir! tmp)
(let [f (io/file tmp "hello.txt")
_ (doto f
io/make-parents
(spit "hello world"))]
(-> fileset
(c/add-asset tmp)
c/commit!
next-handler))))))
(deftask dev
"Build my report."
[]
(comp (my-count)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment