This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-19
Channels
- # announcements (5)
- # beginners (40)
- # cider (3)
- # clara (9)
- # cljs-dev (2)
- # cljsrn (4)
- # clojure (8)
- # clojure-spec (24)
- # clojure-uk (4)
- # clojurescript (3)
- # cursive (6)
- # data-science (3)
- # datomic (53)
- # emacs (3)
- # figwheel-main (11)
- # fulcro (37)
- # lein-figwheel (17)
- # off-topic (13)
- # parinfer (1)
- # re-frame (9)
- # reagent (2)
- # remote-jobs (7)
- # shadow-cljs (75)
- # tools-deps (4)
- # yada (16)
how do I --build-once
programmatically? the docs for the API seem focused on starting REPLs and servers, but what I want is to just compile a production .js in the middle of a deployment script
I looked into the figwheel-main sources but I was perplexed; I found it hard to follow, perhaps because I'm not familiar with the workings of cljs.main itself
well, I guess I could always do (figwheel.main/-main "--build-once" "prod")
, but since there's an API namespace I don't suppose that's how I'm supposed to do it
also, do I need target
in my classpath for --build-once
? I thought it was only required for :optimizations :none
?
I'm asking because I get the following warning:
es@bocha:~/src/semente$ clj -A:dev:deploy -m figwheel.main -bo prod
[Figwheel] Validating figwheel-main.edn
[Figwheel] figwheel-main.edn is valid!
[Figwheel:WARNING] Attempting to dynamically add "target" to classpath!
[Figwheel:WARNING] Target directory "target" is not on the classpath
[Figwheel:WARNING] Please fix this by adding "target" to your classpath
@euccastro these are both good questions