This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-20
Channels
- # ai (1)
- # beginners (17)
- # boot (27)
- # cider (2)
- # cljs-dev (64)
- # clojure (131)
- # clojure-austin (13)
- # clojure-dev (15)
- # clojure-dusseldorf (11)
- # clojure-france (45)
- # clojure-russia (19)
- # clojure-spec (66)
- # clojure-uk (22)
- # clojurescript (97)
- # core-logic (7)
- # cursive (5)
- # data-science (1)
- # datomic (92)
- # dirac (49)
- # emacs (1)
- # events (5)
- # funcool (10)
- # hoplon (79)
- # jobs (1)
- # jobs-rus (1)
- # lein-figwheel (1)
- # leiningen (3)
- # om (14)
- # onyx (35)
- # planck (2)
- # proton (1)
- # re-frame (21)
- # reagent (2)
- # ring-swagger (10)
- # spacemacs (10)
- # specter (18)
- # untangled (7)
- # vim (23)
Hi all, I’m sure this is something easy, but can’t seem to find it - how can I tell boot to create actual files? For example, if I do (cljs :optimizations :advanced)
, it compiles successfully and makes the js files available to other tasks like serve
, but I don’t see the js file anywhere on disk? How can I tell boot to write the actual compiled js file to disk?
maybe the sift
task is the way to go? maybe sift
it into a resources/public directory or something like that?
@upgradingdave use the target
task
e.g.: (boot (cljs :optimizations :advanced) (target))
ah, sweet, perfect, thanks!
@upgradingdave you can also customize the directory where the files will end up with (target :dir “foo")
the default being “target"
can I call e.g. sift
inside with-pre-wrap
?
if not, how do I remove a file from the fileset?
@anmonteiro you cannot use sift
@anmonteiro the fileset is a map/record with a :tree
key. Keys are paths and values are describing files at that path. Dissoc a key to remove a file
(make sure you also commit!
the changed fileset value)
@martinklepsch awesome
seems simple enough
@martinklepsch hrm, would this be possible?
(deftask foo []
(comp (with-pre-wrap fileset ….)
(sift ...)))
with-pre-wrap
generates a function AFAIK
ok, cool
also a viable option then, thanks
you're welcome 🙂
shouldn’t
find a file in the classpath for me?
boot.core/by-re
should be able to do what I want