Skip to content

Boot task for file revisions. Renaming files to include version, hash etc. (fingerprinting)

Notifications You must be signed in to change notification settings

mrmcc3/boot-rev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Boot task for file revisions. Renaming files to include version, hash etc. (fingerprinting)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published