Fork me on GitHub
#lein-figwheel
<
2018-06-03
>
metacritical16:06:15

@bhauman Thanks for making the figwheel-main i was trying to bolt figwheel on cljs.main but then i saw on clojurescriptchannel about figwheel-main and it is awesome. Now i am gonna send just one link to my resume to the prospective employer.

metacritical16:06:16

@bhauman My current barebones figwheel-main based resume in progress is like this : clj -Sdeps '{:deps {github-metacritical/cljscv {:git/url "" :sha "6dad5bfbc29892a8c2f385b8275673863d1f6c6e"}}}' -m figwheel.main -co '{:main resume.core}' -c resume.core -r the only problem is this creates a target directory and even warns that deps.edn does not have a targetdirectory. Is there a way it would not create a targetdirectory or may be create it in /tmp or may be cleanup when we press C-c

bhauman17:06:07

@metacritical yeah I've been thinking about this, but there's not going to be a solution anytime soon

bhauman17:06:26

remember a .cpcache is also being created I think

bhauman17:06:11

you can get rid of the warning by adding :paths ["src" "target"] to the Sdeps

bhauman21:06:10

@metacritical oh I figured it out, figwheel.main -co '{:main resume.core}' -r creates a temp-directory without warnings

metacritical23:06:54

@bhauman, thanks for the reply. It does not give warnings if target directory exists, but on a fresh invocation it does warn. Try deleting the existing target directory, it would complain and then create a targetdirectory. Can there be a flag based option say -twhich guides where to create the target directory?

bhauman23:06:51

@metacritical are you talking about the temp target dir?

bhauman23:06:04

@metacritical are you using figwheel.main -co '{:main resume.core}' -r explicitly without the -c flag?

bhauman23:06:32

oh so strange

bhauman23:06:38

your on a mac?

bhauman23:06:09

let me try to reproduce

bhauman23:06:08

i get no such warning

bhauman23:06:29

maybe you aren't using the latest snapshot

metacritical23:06:59

It is the latest snapshot, i used the same command as above clj -Sdeps '{:deps {github-metacritical/cljscv {:git/url "" :sha "6dad5bfbc29892a8c2f385b8275673863d1f6c6e"}}}' -m figwheel.main -co '{:main resume.core}' -c resume.core -r

bhauman23:06:41

oh take "target" out of the deps edn

bhauman23:06:51

no that shouldn't do it

bhauman23:06:04

but you don't need it there if you are using a temp dir

metacritical23:06:33

but targetis the default.

metacritical23:06:53

It warns anyway. ther is no way to use temp is there?

bhauman23:06:32

that command has a "-c" in it

bhauman23:06:01

@metacritical get rid of the -c resume.core and it works

bhauman23:06:17

I stated that above 🙂

metacritical23:06:56

@bhauman thankyou it works!!! 🙂

👍 4
metacritical23:06:58

@bhauman There is only one problem it does not start the resume.core ns which i want to start as soon as it loads.

metacritical23:06:38

So a -c resume.core is a necessity.

bhauman23:06:27

-c isn't a neccessity

bhauman23:06:21

its loading core

bhauman23:06:40

yes it will as the resume.core is not supposed to be there

metacritical23:06:26

@bhauman yes if i dont use the -c flag, it loads the default figwheel.main

bhauman23:06:02

it really shouldn't

bhauman23:06:31

looks like you don't have the latest

bhauman23:06:53

as I fixed this bug earlier today

metacritical23:06:56

will clean the .mvn and check again.