Fork me on GitHub
#testing
<
2016-07-14
>
anmonteiro21:07:49

@bensu: wondering if the doo Node.js runner can find modules in node_modules

anmonteiro21:07:03

I’m not having any luck with Boot currently

anmonteiro21:07:40

it worked in Lein but can’t get it to work with Boot even after adding node_modules to the fileset

bensu21:07:46

@anmonteiro: I’m not sure. node_modules works with relative paths. lein-doo respects that since you usually call it from a root dir that has both project.clj and node_modules. Then it works.

anmonteiro21:07:32

@bensu: right, I got that working. But I’m trying that in a boot project and the concept is different because it relies on filesets

anmonteiro21:07:10

and filesets are not directly mapped to the project tree

bensu21:07:41

then I can’t help you much. there are a couple of tickets (CLJS-JIRA) around calling the compiler with different relative paths (by @martinklepsch and me) which might help you see what the problem is

bensu21:07:29

I would talk to @crisptrutski since he has done all the related work.

anmonteiro21:07:53

@bensu: yeah, I’ve also seen those tickets a while ago, but I’m not having that problem. IIRC they are about :target :nodejs and the path for the preamble or something

anmonteiro21:07:24

thanks for your help anyway, I’ll keep diggging

bensu21:07:38

final idea, read boot-cljs-test source to find how he adds runner.js to the file-set. If he preserves the relative paths, then you can use the same thing to add node_modules and that should work

anmonteiro21:07:29

@bensu: cool, I’ll try that first

anmonteiro21:07:37

I should note that I’m using boot-cljs-test

anmonteiro21:07:02

so I definitely want to put node_modules where runner.js can read them