Skip to content

Instantly share code, notes, and snippets.

Embed
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")))
state
(keys (:modules state)))))
;; then in the build step
(-> state
(define-modules)
(add-module-build-times)
(cljs/step-compile-modules)
(cljs/closure-optimize)
(cljs/flush-modules-to-disk))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment