Thanks Thomas. I tried your version of the project.clj. Should the
output directory be the same in both dev and prod? Because when I set
them the same, I get this when trying the prod build:

Error encountered performing task 'cljsbuild' with profile(s): 'prod'
java.lang.Exception: All [:compiler :output-dir] options must be distinct.

On Fri, Jan 30, 2015 at 10:21 AM, Thomas Heller <[email protected]> wrote:
> 1) The main js file is empty because of the closure compiler error. The 
> circular dependency is somewhere in your code, usually :none should detect it 
> as well but difficult to tell without the source.
>
> 2) I do not think the cljsbuild config should be in a profile.
>
> https://www.refheap.com/96682
>
> Try defining a :dev and :prod build and then run
>
> lein with-profile prod cljsbuild once prod
>
> or in dev
>
> lein cljsbuild auto dev
>
>
> HTH,
> /thomas
>
>
> On Friday, January 30, 2015 at 9:30:41 AM UTC+1, Andrew S wrote:
>> I need another set of eyes on this to see what I'm doing wrong. This is my 
>> project.clj:
>>
>> https://www.refheap.com/96680
>>
>> At the command line, I do this:
>>
>> lein with-profile prod cljsbuild once
>>
>> It does a number of things that are apparently not right:
>>
>> 1) It spits out the main js file that only has this in it:
>>
>> ;(function(){
>>
>> })();
>>
>> 2) It still generates an out/ dir with separate js files for each cljs 
>> namespace.
>>
>> 3) The compiler gives me a circular dependency error when there is none in 
>> my code, and the :none optimizations work fine. The error says this:
>>
>> Jan 30, 2015 9:24:51 AM com.google.javascript.jscomp.LoggerErrorManager 
>> println
>> SEVERE: ERROR - Circular dependency detected: appjs.session -> appjs.session
>>
>> Jan 30, 2015 9:24:51 AM com.google.javascript.jscomp.LoggerErrorManager 
>> printSummary
>> WARNING: 1 error(s), 0 warning(s)
>> ERROR: JSC_CIRCULAR_DEP. Circular dependency detected: appjs.session -> 
>> appjs.session at (unknown source) line (unknown line) : (unknown column)
>>
>> I'm sure I'm doing something obvious, if anyone can tell what it is, let me 
>> know. Leiningen is a bit of a mystery to me.
>>
>> Andrew
>>
>> --
>> hellofunk
>
> --
> Note that posts from new members are moderated - please be patient with your 
> first post.
> ---
> You received this message because you are subscribed to a topic in the Google 
> Groups "ClojureScript" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojurescript/Boc3w0BbNCw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.



-- 
hellofunk

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to