Fork me on GitHub
#boot
<
2016-12-20
>
berrysoup12:12:35

how to do unit test after aot compilation?

berrysoup12:12:27

I need to do tests on classes made by gen-class and still have ClassNotfound

zerio19:12:31

is it expected that the watch task can result in a large number of WatcheService threads like this?

"WatchService for resources/public/compiled/js/goog/debug" #601 daemon prio=5 os_prio=31 tid=0x00007f7f762ec800 nid=0xc1703 runnable [0x00007000084bf000]
	at com.barbarysoftware.watchservice.MacOSXListeningWatchService$CFRunLoopThread.run(MacOSXListeningWatchService.java:73)
...
"WatchService for src/styles" #531 daemon prio=5 os_prio=31 tid=0x00007f7f77096800 nid=0xb4b07 runnable [0x0000700003cea000]
	at com.barbarysoftware.watchservice.MacOSXListeningWatchService$CFRunLoopThread.run(MacOSXListeningWatchService.java:73)
i currently have 239 "watcher threads" (according to jstack) on a medium sized project. it jumps to ~300 if i turn on the cljs compilation step in my build.

micha19:12:15

seems possible

juhoteperi20:12:10

I think I'll release next boot-cljs as 2.0.0. Not that it'll be different in any major way, but I think following compiler version is no longer needed, and I think there is no reason to wait for "the major update" I've been thinking about.

richiardiandrea20:12:01

@juhoteperi have you had time to have a look at figwheel client in boot-reload by any chance?

juhoteperi20:12:38

@richiardiandrea I have looked at it quickly. It is still missing some event types?

richiardiandrea20:12:19

yes css and some other things...also there is a call to cljs.compiler/munge that I would like to discuss with you, personally I don't like it

richiardiandrea20:12:56

as it includes a dependency on clojurescript

richiardiandrea20:12:34

it is there because figwheel requires the munged javascript namespace

juhoteperi20:12:11

Can boot-cljs get the munged name without using the same cljs.compiler/munge call?

micha20:12:15

or filesystem metadata added by boot-cljs could have the munged name?

richiardiandrea20:12:18

yes that's what I was thinking, but that would be some meta on the changed js file...that's the burden it adds

richiardiandrea20:12:01

@micha yes I was thinking exactly that, now the only meta we pass around is on the .cljs.edn

juhoteperi20:12:17

Yeah, that is one option.

richiardiandrea20:12:51

mmm...I am still torn between the two...because in any case boot-cljs and boot-reload are going to be used together...and in any case the project requires clojurescript

juhoteperi20:12:17

The dependency is not problem. Problem is that munge is not in the public API.

richiardiandrea20:12:13

ah yes, true, figwheel uses it deliberately...maybe it should be public...I have no idea why it is used, the end result is just do have _ instead of - I guess

iago.b2wdigital22:12:53

Hi guys, I'm trying to build an open source project to make available on maven central repo through OSSRH

iago.b2wdigital22:12:38

Do u guys have any nice tutorial available explaining how to make it? Tried to google a lot, but just found tutorial about clojars

iago.b2wdigital22:12:25

Asking here because I'm using boot

micha22:12:47

@iago.b2wdigital are you running into issues pushing to maven central?

iago.b2wdigital22:12:30

Well I do boot pom but I can't find the pom.xml anywhere

micha22:12:48

if you do boot pom show -f you can see where it is located

micha22:12:01

and boot pom target will write it to the target dir

iago.b2wdigital22:12:23

Cool, that helps.. it's required that all files must be signed

iago.b2wdigital22:12:32

Does boot sign the files like maven?

micha22:12:49

boot can sign poms and jars with gpg

micha22:12:08

the push task will do that

micha22:12:16

if you provide the relevant options

iago.b2wdigital22:12:24

Cool.. so to push the files I could do almost the same process as to publish to clojars, like in the tutorials?

micha22:12:38

i think so, yes

micha22:12:11

you can also create the pom and jar with boot and then use mvn to push them to maven central probably

iago.b2wdigital22:12:30

Well, thanks a lot then.. it's the last step to make it open source :)

micha22:12:46

awesome! good luck 🙂

iago.b2wdigital22:12:56

Nice.. I'll take a note just in case

juhoteperi22:12:59

(no release yet, just bumped version to snapshot)