Fork me on GitHub
#boot
<
2016-10-30
>
jupl03:10:17

I’m looking to get back into messing around with CLJS again. I am working on a development server with CLJS being built. If I have the following:

index.html (contains <script src=“app.js”></script>)
app.js
app.out/
users/index.html (contains <script src=“../app.js”></script>, or alternatively <script src=“/app.js”></script>)
When I open localhost/index.html app.js loads as expected. However, when I try to open localhost/users/index.html the script fails to load as the base path is different and everything falls apart. What do I need to do to remedy this?

thedavidmeister10:10:02

i have a dumb question

thedavidmeister10:10:14

how do i make something in a private github repo a dependency of my project?

fossifoo11:10:48

i think my problem is more in the source paths

fossifoo11:10:04

i have to put src/clj/ in there to be able to start up the server to be able to run the e2e tests

fossifoo11:10:57

then clojure.test come around and tries to compile all sources in the path and then doesn't find the garden dep

flyboarder17:10:16

@hlship awesome article, I actually prefer scripting via boot, it's awesome!

pesterhazy18:10:22

@thedavidmeister you need to build jars and push them to a (private) maven repository

pesterhazy18:10:36

you could use a CI service (circleCI, or roll your own)

pesterhazy18:10:58

then you also need a place to host the jars; you can put them on s3 or on a maven repo saas

pesterhazy19:10:19

there was a service that automatically builds github repo -> private maven repo, but I can't find it

pesterhazy19:10:09

personally I just build uberjars and upload them to s3, then get those files from s3, no private repo necessary

pesterhazy19:10:18

but that only works if everything is in a single repo

zane20:10:42

Is passing :ids to tasks document somewhere I'm not seeing?