Fork me on GitHub
#clojurescript
<
2015-10-11
>
richiardiandrea00:10:08

mmm...soooo adding manually the js files in index.html solved all my problems.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jqconsole/jqconsole.min.js"></script>
<link href="styles/console.css" rel="stylesheet" type="text/css">

richiardiandrea00:10:02

I was under the impression that this would be done at the .js level in prod...I see that when in dev all the deps are imported by the compiled .js

stopa00:10:15

hey everyone, I am trying to get cljsbuild to have two paths, one that targets nodejs, and another that targets the web. I am trying to do it with this directory structure -> http://pastebin.com/eaDDGZBF when doing this though, I get the error -> No such namespace: cljsjs.react, could not locate cljsjs/react.cljs, When I change source-paths to just ["src-cljs"], it works. Am I missing something obvious?

bensu00:10:27

@stopachka: first, did you mean project.cljs or project.clj?

bensu00:10:38

and react.cljsjs or react.cljs?

stopa15:10:12

@bensu apologies, made a bunch of typos there :#. I did mean project.clj, and react.cljs (here's the actual git repo -> https://github.com/stopachka/stepanp-isomorphic)

bensu15:10:16

@stopachka: is there a specific reason to use profiles when you only have one? Take everything out, it will save you some bugs in the future.

bensu15:10:04

as for the :source-paths, cljsbuild puts all the source paths in the classpath before compiling, that is how the compiler then has access to them. My guess is that if you overspecify the path, then the compiler can't find cljsjs.react because it looks under cljsjs/react.cljs and that is not in the classpath

bensu15:10:40

To diagnose this, I recommend you to read the ClojureScript Quick Start and play with the source-paths yourself without cljsbuild in the middle.

bensu15:10:36

the first java command: java -cp cljs.jar:src clojure.main build.clj and try changing src for more specific things like src/cljsjs

stopa15:10:58

@bensu thanks! Will start playing around, and also simply project.clj.

bensu16:10:00

which reads from the compilers internal state, env/*compiler*

bensu16:10:25

should it be possible to call cljs.analyzer.api/all-ns during macro expansion?

bensu16:10:07

I clearly have a bug in my code then 😐 Sorry for the noise.