Liking cljdoc? Tell your friends :D

boot-rev

Boot task for file revisions (Naming files by version, hash etc.)

Clojars Project

Usage

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

LICENSE

Copyright © 2015 Michael McClintock

Distributed under the Eclipse Public License, the same as Clojure.

Can you improve this documentation? These fine people already did:
Michael McClintock, jiyinyiyong & mrmcc3
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close