forked from cljsjs/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.boot
29 lines (25 loc) · 1.14 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
(set-env!
:resource-paths #{"resources"}
:dependencies '[[cljsjs/boot-cljsjs "0.5.2" :scope "test"]])
(require '[cljsjs.boot-cljsjs.packaging :refer :all])
(def +lib-version+ "2.0.4")
(def +version+ (str +lib-version+ "-5"))
(task-options!
pom {:project 'cljsjs/hammer
:version +version+
:description "A javascript library for multi-touch gestures"
:url "http://hammerjs.github.io/"
:scm {:url "https://github.com/cljsjs/packages"}
:license {"MIT" "http://opensource.org/licenses/MIT"}})
(deftask package []
(comp
(download :url (format "https://github.com/hammerjs/hammer.js/archive/%s.zip" +lib-version+)
:checksum "F2A06997B5D731E86A114302D7838AA9"
:unzip true)
(sift :move {#"^hammer.js-\d\.\d\.\d/hammer.js" "cljsjs/development/hammer.inc.js"
#"^hammer.js-\d\.\d\.\d/hammer.min.js" "cljsjs/production/hammer.min.inc.js"})
(replace-content :in "cljsjs/production/hammer.min.inc.js" :match #"(?m)^//# sourceMappingURL=.*$" :value "")
(sift :include #{#"^cljsjs"})
(deps-cljs :name "cljsjs.hammer")
(pom)
(jar)))