Skip to content

Instantly share code, notes, and snippets.

View built.boot
(deftask add-webjar
"Adds a webjar asset. Example: (add-webjar :jar 'org.webjars.bower/jquery :name \"jquery\")"
[j jar sym "The jar"
n name str "The name"]
(comp
(sift :add-jar {jar #"^META-INF/resources/webjars"})
(sift :move {(java.util.regex.Pattern/compile (str "^META-INF/resources/webjars/" name "/[^/]*/dist/")) (str name "-")})))
View build.boot
(set-env!
:source-paths #{"src" "test"}
:resource-paths #{"src" "test" "sass"}
:wagons '[[s3-wagon-private "1.1.2"]]
:repositories [["clojars" "http://clojars.org/repo/"]
["maven-central" "http://repo1.maven.org/maven2/"]
["releases" {:url "http://archiva:8080/repository/internal"
:username (System/getenv "ARCHIVA_USERNAME")
:password (System/getenv "ARCHIVA_PASSWORD")}]
["my.datomic.com" {:url "https://my.datomic.com/repo"
View build.boot
(set-env!
:resource-paths #{"resources"}
:dependencies '[[adzerk/bootlaces "0.1.10" :scope "test"]
[cljsjs/boot-cljsjs "0.5.0" :scope "test"]])
(require '[adzerk.bootlaces :refer :all]
'[cljsjs.boot-cljsjs.packaging :refer :all])
(def +version+ "1.0.2")
(bootlaces! +version+)
You can’t perform that action at this time.