This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-26
Channels
- # aleph (1)
- # beginners (96)
- # boot (5)
- # cider (44)
- # cljdoc (11)
- # clojure (73)
- # clojure-conj (4)
- # clojure-dev (1)
- # clojure-finland (2)
- # clojure-italy (7)
- # clojure-new-zealand (1)
- # clojure-nl (3)
- # clojure-spec (4)
- # clojure-uk (66)
- # clojurescript (114)
- # code-reviews (16)
- # cursive (15)
- # datomic (37)
- # emacs (6)
- # events (2)
- # figwheel-main (12)
- # fulcro (36)
- # graphql (19)
- # hoplon (2)
- # hyperfiddle (3)
- # jobs (2)
- # leiningen (4)
- # off-topic (36)
- # om (1)
- # om-next (2)
- # other-languages (1)
- # re-frame (12)
- # reagent (12)
- # reitit (5)
- # remote-jobs (4)
- # ring (2)
- # shadow-cljs (218)
- # spacemacs (8)
- # specter (7)
- # sql (34)
- # tools-deps (9)
- # uncomplicate (6)
Hi all, running into another issue. I have a boot task that downloads a js lib to the fileset, and then compiles it as a foreign lib. Here is a simplified version of the task:
(comp (download :url "package-url"
:target "package.js")
(watch)
(reload)
(sass :output-style :compressed)
(cljs :optimizations :advanced
:compiler-options
{:foreign-libs [{:file "package.js"
:provides ["package"]}]})
(sift)
(target))
The issue I'm seeing is that it compiles great the first time, but when the code reloads, it throws a java.io.FileNotFoundException
for package.js
. Have I structured the task correctly? I would have though the download
puts the file in the fileset once, and then it's there for every iteration of watch
.How does this work again?
(deftask foo
[r records int "number of records"]
*opts*)
(boot.core/boot "foo" "-r" "100")
;;=> No such task (100)
@borkdude I believe if you want to pass in a value along with -r you need an extra arg in the task def. See here, https://github.com/boot-clj/boot/wiki/Task-Options-DSL#anatomy, the 3. Optarg. It indicates that option is not just a flag.