Fork me on GitHub
#figwheel-main
<
2018-11-27
>
rduplain18:11:55

Is there a tool/API for loading figwheel-main configuration from lein's project.clj map? I'd like to see if I can keep all build configuration in one place (project.clj). Or is the idea to create aliases which pass arguments to lein run -m figwheel.main ARG...?

rduplain18:11:41

I've been reading through the most excellent documentation on http://figwheel.org, and some past blog/wiki posts. Excuse me if I missed something.

rduplain18:11:08

I had a build set up with #lein-figwheel and want to use figwheel-main going forward.

bhauman18:11:20

No that’s not possible unless you make a custom script and read the project clj yourself

rduplain18:11:00

Got it. Thanks! I'll explore further. The lein alias route could be what I need, and I'll take another look at figwheel-main.edn. I find lein productive but will keep Clojure CLI tooling in mind as an alternative.

gdanov23:11:49

hi folks, esp @bhauman! I have probably weird question — I'm writing tool that targets js development (funny, right) and decided to go with figwheel for hot reloading and other extras. I have the problem that I need to pre-process the js source before it gets to the closurescript compiler and I can't find good spot to plug in. the best spot so-far is the pre-build-hooks where I can get my job done, but I'd prefer if I got the list of the changed files so I preprocess only them. reading the source it seems

wrap-with-build-hooks
could easily pass that info to the hook. Any reason not to do that?