Fork me on GitHub
#clojurescript
<
2018-05-19
>
Bravi07:05:02

thanks @mfikes. when I run jps, it gives me

19504 main
19506 main
21893 Jps
20646 main
12953
21007 main
are these all clojure threads?

alexmiller11:05:01

Those are Java processes which may be Clojure programs. Pass args like jps -mv to see more info

Bravi07:05:19

ok so I did a few tests and it turns out that the issue is related to the amount of files I have in my project dir. I’ve got a Laravel (php) project and I’ve got my project.clj in there. I’m re-building this web app from PHP Backend + React.js on Frontend, to just Clojure + ClojureScript. So if I strip out all the cljs code I have at the moment and put it somewhere outside this project and run lein figwheel there, it starts up within 12 seconds. and in the current project dir it takes around 110 seconds on average

Bravi08:05:46

furthermore testing, it turns out it’s because of node_modules dir

mfikes12:05:26

@bravilogy An improvement in node_modules indexing has landed on ClojureScript master. If you are interested in trying that, https://clojurescript.org/community/building

mfikes12:05:26

I saw a 6-fold improvement on one of my projects.

johnj14:05:42

I'm following the quick start, how can I prevent clj --main cljs.main --compile hello-world.core --repl from opening a browser?

johnj14:05:57

want to use a remote browser, so was thinking of point a web server to the out dir

johnj14:05:35

where the main.js resides, where does the default index.html resides?

mfikes15:05:04

@lockdown- You can use the :launch-browser REPL opt:

clj --main cljs.main --repl-opts '{:launch-browser false}' --compile hello-world.core --repl
See more at https://clojurescript.org/reference/repl-options#launch-browser

👍 4
mfikes15:05:45

You can place an index.html in the directory where you launch the REPL. Follow the instructions that are shown in the browser.

theeternalpulse22:05:14

Is there instrumenting that needs to be done for garden to work?