Re: cljsbuild dev/release, different debug levels

2014-04-08 Thread Tatu Tarvainen
I had the same issue and solved it by having 3 source paths: - src (containing the app) - src-dev (containing the dev version of the logging ns) - src-prod (containing the production version of the logging ns) cljsbuild development builds use source paths [src src-dev] and production builds use

Re: cljsbuild dev/release, different debug levels

2014-04-04 Thread Daniel Kersten
I'd love to know the correct answer to this too, but in the meantime, here's how I've been doing it: I define the release version in some namespace. To use it, I require this namespace. Eg release-namespace/func Then I create a separate file for the debug build and I require the release

cljsbuild dev/release, different debug levels

2014-04-03 Thread t x
Hi, I'm trying to figure out how to do the following: Have a shared cljs/* ... For the dev build, have (debug ...) compile to (js/console.log ...) For the release build, have (debug ...) compile to (do). Basically, I want different things to happen depending on whether the build is

Re: cljsbuild dev/release, different debug levels

2014-04-03 Thread Alex Robbins
If you used cljx, you could probably use the feature expressions to do what you want. https://github.com/lynaghk/cljx You'd need to set up a custom rule for it, but it seems well within the scope of the project. On Thu, Apr 3, 2014 at 8:50 AM, t x txrev...@gmail.com wrote: Hi, I'm trying

Re: cljsbuild dev/release, different debug levels

2014-04-03 Thread t x
I don't use cljx. It slows down lein cljsbuild auto. I'm using pure clojurescript. Is there a way to get the dev / release tag passed somehow? On Thu, Apr 3, 2014 at 6:58 AM, Alex Robbins alexander.j.robb...@gmail.com wrote: If you used cljx, you could probably use the feature expressions to do

Re: cljsbuild dev/release, different debug levels

2014-04-03 Thread t x
The correct statement should be: I *no longer* use cljx. :-) On Thu, Apr 3, 2014 at 8:05 AM, t x txrev...@gmail.com wrote: I don't use cljx. It slows down lein cljsbuild auto. I'm using pure clojurescript. Is there a way to get the dev / release tag passed somehow? On Thu, Apr 3, 2014 at