Fork me on GitHub
#boot
<
2016-06-18
>
lwhorton00:06:38

heya guys, what’s the proper way to setup boot so that you can (:require files from other roots outside of ./src/cljs?

lwhorton00:06:29

I’m trying :source-paths #{“../other/place/src/cljs/} as well as src/cljs/specific-module and alos src/cljs/specific-module/specific-file.cljs, but they all fail for one reason or another.

lwhorton00:06:38

With the last, the compilation fails. With the first, the compilation fails because it’s seemingly including every file in ..//other/place/cljs/, but my existing cljs project doesnt include some of the necessary dependencies. In the middle case, the compilation goes through, but a call to :require-macros macros fails with “cannot find module__init.class”.

lwhorton00:06:21

I can get the :require-macros to not complain by including ../other/place/src/clj instead of ../other/place/src/cljs/specific_module, but then goog.resolve fails with a nameToPath error.

lwhorton00:06:38

It just seems like any permutation has errors one way or another. Is it possible to do this or no?

lwhorton00:06:18

(for clarity- I’m just trying to share code between sub-projects… I have a bunch of useful libraries and framework-ey type stuff sitting in the project root. I don’t have time to pull each of these out into fully independent modules, though, and so I figured it would be easiest to just make boot think those dirs were part of my project.)

micha00:06:51

@lwhorton: have you tried the --checkouts option?

micha00:06:28

that's a much cleaner way to do it because you don't need to merge the builds for the sub projects into your main build

micha00:06:44

the idea is this:

micha00:06:53

suppose you have project A that depends on project B

micha00:06:12

normally you'd put B in your :dependencies in A's build.boot

micha00:06:27

you want to be able to work on A and B simultaneously, is that correct?

zaffy14:06:08

how can I use boot-environ in build.boot to specify environment variables pls

flyboarder16:06:20

@zaffy just to clarify you are looking to add env variables to your build pipeline not your application correct?

zaffy20:06:55

yes, trying to load DB connection parameters at startup from the environment vars @flyboarder

flyboarder20:06:36

As far as my understanding goes 'boot-environ' is for setting task params not app params

flyboarder20:06:32

As in your app will also need to know about how to load environ params

flyboarder20:06:58

And doesn't have access to the ones set in the pipeline