-
Notifications
You must be signed in to change notification settings - Fork 815
/
Copy pathbuild.boot
37 lines (32 loc) · 1.41 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
32
33
34
35
36
37
(def +lib-version+ "8.0.7")
(def +version+ (str +lib-version+ "-0"))
(set-env!
:resource-paths #{"resources"}
:dependencies '[[cljsjs/boot-cljsjs "0.10.5" :scope "test"]
[cljsjs/react "17.0.2-0"]
[cljsjs/date-fns "2.28.0-0"]])
(require '[cljsjs.boot-cljsjs.packaging :refer :all])
(task-options!
pom {:project 'cljsjs/react-day-picker
:version +version+
:description "A date picker component"
:url "https://github.com/gpbl/react-day-picker"
:scm {:url "https://github.com/cljsjs/packages"}
:license {"MIT" "http://opensource.org/licenses/MIT"}})
(deftask package []
(task-options! push {:ensure-branch nil :tag false})
(comp
(download
:url (str "https://unpkg.com/react-day-picker@" +lib-version+ "/dist/react-day-picker.min.js")
:target "cljsjs/react-day-picker/development/react-day-picker.inc.js")
(download
:url (str "https://unpkg.com/react-day-picker@" +lib-version+ "/dist/react-day-picker.min.js")
:target "cljsjs/react-day-picker/development/react-day-picker.min.inc.js")
(download
:url (str "https://unpkg.com/react-day-picker@" +lib-version+ "/dist/style.css")
:target "cljsjs/react-day-picker/common/react-day-picker.inc.css")
(sift :include #{#"^cljsjs"})
(deps-cljs :name "cljsjs.react-day-picker" :requires ["cljsjs.react"])
(validate-checksums)
(pom)
(jar)))