|
1 | 1 | (set-env! |
2 | 2 | :resource-paths #{"resources"} |
3 | | - :dependencies '[[adzerk/bootlaces "0.1.10" :scope "test"] |
| 3 | + :dependencies '[[adzerk/bootlaces "0.1.11" :scope "test"] |
4 | 4 | [cljsjs/boot-cljsjs "0.5.0" :scope "test"]]) |
5 | 5 |
|
6 | 6 | (require '[adzerk.bootlaces :refer :all] |
7 | | - '[cljsjs.boot-cljsjs.packaging :refer :all] |
8 | | - '[boot.core :as boot] |
9 | | - '[boot.tmpdir :as tmpd] |
10 | | - '[clojure.java.io :as io] |
11 | | - '[boot.util :refer [sh]]) |
| 7 | + '[cljsjs.boot-cljsjs.packaging :refer :all]) |
12 | 8 |
|
13 | | -(def +version+ "0.2.1") |
| 9 | +(def +version+ "0.3.1") |
14 | 10 | (def +cljsjs-version+ (str +version+ "-0")) |
15 | 11 | (bootlaces! +cljsjs-version+) |
16 | 12 |
|
|
22 | 18 | :scm {:url "https://github.com/cljsjs/packages"} |
23 | 19 | :license {"MIT" "https://opensource.org/licenses/MIT"}}) |
24 | 20 |
|
25 | | -(deftask build-bitauth [] |
26 | | - (let [tmp (boot/tmp-dir!)] |
27 | | - (with-pre-wrap |
28 | | - fileset |
29 | | - ;; Copy all files in fileset to temp directory |
30 | | - (doseq [f (->> fileset boot/input-files) |
31 | | - :let [target (io/file tmp (tmpd/path f))]] |
32 | | - (io/make-parents target) |
33 | | - (io/copy (tmpd/file f) target)) |
34 | | - (binding [boot.util/*sh-dir* (str (io/file tmp (format "bitauth-%s" +version+)))] |
35 | | - ((sh "npm" "install"))) |
36 | | - (-> fileset (boot/add-resource tmp) boot/commit!)))) |
37 | | - |
38 | | -(deftask package [] |
| 21 | +#_(deftask package [] |
39 | 22 | (comp |
40 | 23 | (download :url (format "https://github.com/bitpay/bitauth/archive/v%s.zip" +version+) |
41 | | - :checksum "019e001be682f4ca39b6924b91555765" |
| 24 | + :checksum "2b5a77f683aa1d5b7c26a2a6f9e4ec5b" |
42 | 25 | :unzip true) |
43 | | - (build-bitauth) |
44 | | - (sift :move {#".*dist/bitauth\.bundle\.js" "cljsjs/bitauth/development/bitauth.inc.js" |
45 | | - #".*dist/bitauth\.browser\.min\.js" "cljsjs/bitauth/production/bitauth.min.inc.js"}) |
| 26 | + (sift :move {(re-pattern (str "bitauth-" +version+ "/" "bitauth.js")) |
| 27 | + "cljsjs/bitauth/development/bitauth.inc.js" |
| 28 | + (re-pattern (str "bitauth-" +version+ "/" "bitauth.min.js")) |
| 29 | + "cljsjs/bitauth/production/bitauth.min.inc.js"}) |
46 | 30 | (sift :include #{#"^cljsjs"}) |
47 | 31 | (deps-cljs :name "cljsjs.bitauth"))) |
| 32 | + |
| 33 | +(deftask package [] |
| 34 | + (sift :include #{#"^cljsjs" #"^deps.cljs$"})) |
0 commit comments