Boot task for file revisions (Naming files by version, hash etc.)
Use in build.boot
:
(set-env! :dependencies '[[mrmcc3/boot-rev "0.1.0"]])
(require '[mrmcc3.boot-rev :refer [rev]])
;; fingerprint all js files
(deftask demo-rev []
(comp
(rev :files [#"^.*\.js$"])
(target)))
try a demo in this repo:
boot demo-rev
By adding metadata to fileset
you can lookup paths in a following task:
;; you can get the reved path from the original path
(rev-path fileset "out/main.js") ;; -> out/main.ae34fc11.js
Copyright © 2015 Michael McClintock
Distributed under the Eclipse Public License, the same as Clojure.