Clojurians
#cljs-dev
<
2018-04-30
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

richiardiandrea17:04:16

Hello folks, I am trying to understand the foreign lib part of the test-npm-deps-simple core test:

:foreign-libs [{:module-type :es6
                        :file "src/test/cljs/es6_dep.js"
                        :provides ["es6_calc"]}
                      {:module-type :es6
                       :file "src/test/cljs/es6_default_hello.js"
                       :provides ["es6_default_hello"]}

richiardiandrea17:04:36

in particular es6_dep.js imports ./calculator.js

richiardiandrea17:04:07

is node executed within src/test/cljs/ ? or put it differently, how can it work otherwise?

mfikes17:04:35

@richiardiandrea FWIW, our Travis is set up so it can run node: https://github.com/clojure/clojurescript/blob/master/.travis.yml#L6

richiardiandrea17:04:28

sorry I am not explaining this correctly

richiardiandrea17:04:44

I am referring to the node call in node-module-deps

richiardiandrea17:04:53

that resolves the dependencies

richiardiandrea17:04:07

and calls cljs/module_deps.js