forked from cljsjs/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
31 lines (26 loc) · 1.25 KB
/
build.boot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(set-env!
:resource-paths #{"resources"}
:dependencies '[[cljsjs/boot-cljsjs "0.5.1" :scope "test"]])
(require '[cljsjs.boot-cljsjs.packaging :refer :all])
(def +lib-version+ "0.1.0")
(def +version+ (str +lib-version+ "-0"))
(task-options!
pom {:project 'cljsjs/bankersbox
:version +version+
:description "Javascript API for a redis-like API wrapper for data storage in javascript, using localStorage as a default."
:url "https://github.com/twilio/BankersBox"
:scm {:url "https://github.com/twilio/BankersBox"}
:license {"BankersBox License" "https://raw.githubusercontent.com/twilio/BankersBox/master/LICENSE"}})
(deftask package []
(comp
(download :url (str "https://github.com/twilio/BankersBox/archive/v" +lib-version+ ".zip")
:checksum "79D356CEC64AA3369854FB19560BA81F"
:unzip true)
(sift :move {#"^BankersBox-([\d\.]*)/bankersbox\.js"
"cljsjs/bankersbox/development/bankersbox.inc.js"})
(minify :in "cljsjs/bankersbox/development/bankersbox.inc.js"
:out "cljsjs/bankersbox/production/bankersbox.min.inc.js")
(sift :include #{#"^cljsjs"})
(deps-cljs :name "cljsjs.bankersbox")
(pom)
(jar)))