Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
timestamping the output files
(defn add-module-build-times [state]
(let [now (System/currentTimeMillis)]
(reduce (fn [state name]
(assoc-in state [:modules name :js-name] (str now "-" (clojure.core/name name) ".js")))
(keys (:modules state)))))
;; then in the build step
(-> state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment