[ClojureScript] Re: dependency ordering without :modules?

2015-03-13 Thread Tyler Solomon
Thanks, I will have a look at shadow-build. Am I correct to say that the root of my difficulty is google closure-compiler not supporting modules in any compilation level below `simple`? Potentially relevant link: https://github.com/google/closure-compiler/issues/611 -- Note that posts from new

[ClojureScript] Re: dependency ordering without :modules?

2015-03-13 Thread Thomas Heller
On Friday, March 13, 2015 at 6:19:29 PM UTC+1, Tyler Solomon wrote: Thanks, I will have a look at shadow-build. Am I correct to say that the root of my difficulty is google closure-compiler not supporting modules in any compilation level below `simple`? Potentially relevant link:

[ClojureScript] Re: ANN: re-frame v0.2.0 - an FRP MVC pattern for writing SPAs in Reagent. (Woah, so many LTAs!!)

2015-03-13 Thread AndyR
On Friday, March 6, 2015 at 11:28:59 PM UTC-5, Mike Thompson wrote: re-frame is a pattern for writing SPAs, using Reagent. https://github.com/Day8/re-frame [...] - pushes Reagent's FRP capabilities (via use of reaction) The magic thing about a reaction is that the computation it wraps

[ClojureScript] Add cljs-specific resources/ directory with lein?

2015-03-13 Thread Erik Price
Howdy, I’m using leiningen to build my Clojure/ClojureScript project. I’d like to use a macro from my ClojureScript code to read in some SVG files at build time, but I don’t want to put the SVG files into the “main” resources directory, because this is used by the Clojure portion of the project,

Re: [ClojureScript] GCL advanced compilation bug-- :foo-bar and :foo_bar both become :foo_bar

2015-03-13 Thread Michiel Borkent
I have done some further testing and I think this was the same issue. PS: the data used was not an EDN literal, but was dynamically created. On Friday, March 13, 2015 at 11:01:40 AM UTC+1, Michiel Borkent wrote: I have run into an issue in advanced mode when accessing a map with a keyword

[ClojureScript] Re: clj-ajax, lib-noir and anti-forgery token

2015-03-13 Thread Tim Cross
On Friday, 12 December 2014 22:58:24 UTC+11, Cesare wrote: Hi All, I'm not sure this is the right place to ask... anyway: I have a Luminus project with cljs template (Clojurescript + Reagent). After upgrading lib-noir (now at 0.9.5), it seems that the anti-forgery check is now enabled by

Re: [ClojureScript] GCL advanced compilation bug-- :foo-bar and :foo_bar both become :foo_bar

2015-03-13 Thread Michiel Borkent
I have run into an issue in advanced mode when accessing a map with a keyword that contains an underscore: https://gist.github.com/borkdude/be911f120c1676108644 I'm not sure if that is also fixed by CLJS-1105? On Friday, March 13, 2015 at 1:40:33 AM UTC+1, Mike Fikes wrote: Perhaps the same: 

Re: [ClojureScript] GCL advanced compilation bug-- :foo-bar and :foo_bar both become :foo_bar

2015-03-13 Thread David Nolen
These are all the same issue. Fixed in master and will be fixed in the next release. In the meantime you should be able use to use `:optimize-constants false` in your build settings to avoid this for now. David On Fri, Mar 13, 2015 at 6:01 AM, Michiel Borkent michielbork...@gmail.com wrote: I

[ClojureScript] Re: Looking for some help with :foreign-libs

2015-03-13 Thread Elric Erkose
Turns out that base.mod was not actually compiled into the js library. -- 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

Re: [ClojureScript] Re: clj-ajax, lib-noir and anti-forgery token

2015-03-13 Thread Marc Fawzi
Has anyone tried JSON Web Token (JWT) for clj/cljs? https://github.com/liquidz/clj-jwt On Thu, Mar 12, 2015 at 10:59 PM, Tim Cross theophil...@gmail.com wrote: On Friday, 12 December 2014 22:58:24 UTC+11, Cesare wrote: Hi All, I'm not sure this is the right place to ask... anyway: I have

[ClojureScript] Re: clj-ajax, lib-noir and anti-forgery token

2015-03-13 Thread Cesare
On Friday, March 13, 2015 at 12:05:44 PM UTC+1, Tim Cross wrote: I've just managed to work out how to do this. Actually, there are a number of ways to do it, but I think, given you are using luminus, this is the easiest. The basic idea is to add a javascript variable to the page which holds

[ClojureScript] Re: re-frame pattern with external javascript

2015-03-13 Thread Sven Richter
Awesome, thank you, it was :component-did-mount I was looking for. It's easy to forget that a component in reagent has access to lifecycle methods too, happens much to often to me. Best Regards, Sven Am Freitag, 13. März 2015 13:23:48 UTC+1 schrieb Mike Thompson: On Friday, March 13, 2015 at

[ClojureScript] Re: dependency ordering without :modules?

2015-03-13 Thread Tyler Solomon
Thanks for your reply, Thomas. I can see that I'm sufficiently confused as to ask questions that are confusing! The application I'm working on provides different modules to different users, so I won't know, for instance if the user has a contacts module enabled until I look up which modules they

[ClojureScript] re-frame pattern with external javascript

2015-03-13 Thread Sven Richter
Hi, I am trying the re-frame pattern with resumable.js. Resumable.js needs one to execute a function on an existing dom element like this: r.assignBrowse(document.getElementById('browseButton')); Now, the problem is, if the button is not there yet in the dom, calling assignBrowse will fail

[ClojureScript] Re: dependency ordering without :modules?

2015-03-13 Thread Thomas Heller
You should have a main namespace where your app is started and this namespace should require all component namespaces you are going to use. (ns project.main (:require [project.components.contacts])) (start-the-app) This way you ensure that all your namespaces are loaded in the proper order

[ClojureScript] Re: re-frame pattern with external javascript

2015-03-13 Thread Mike Thompson
On Friday, March 13, 2015 at 10:10:55 PM UTC+11, Sven Richter wrote: Hi, I am trying the re-frame pattern with resumable.js. Resumable.js needs one to execute a function on an existing dom element like this: r.assignBrowse(document.getElementById('browseButton')); Now, the problem is,

[ClojureScript] Re: dependency ordering without :modules?

2015-03-13 Thread Tyler Solomon
I think perhaps you have already given me the answer, but I do not see it. I should require all of the component namespaces so they are available when rendering the root of application. Later when the code is split for production and certain modules that contain component namespaces are not

[ClojureScript] Re: dependency ordering without :modules?

2015-03-13 Thread Thomas Heller
On Friday, March 13, 2015 at 4:10:04 PM UTC+1, Tyler Solomon wrote: I think perhaps you have already given me the answer, but I do not see it. I should require all of the component namespaces so they are available when rendering the root of application. Later when the code is split for

[ClojureScript] Re: Resources for Getting Started with Clojurescript

2015-03-13 Thread Zubair Quraishi
I have some videos you may find useful: http://www.zubairquraishi.com/zubairquraishi/clojurescript--light-table.html -- 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

Re: [ClojureScript] namespacing re-frame handlers

2015-03-13 Thread Jamie Orchard-Hays
Cheers. :) Jamie On Mar 12, 2015, at 10:31 PM, Mike Thompson m.l.thompson...@gmail.com wrote: On Friday, March 13, 2015 at 6:04:21 AM UTC+11, Jamie Orchard-Hays wrote: As I'm starting to explore re-frame in a playground app, one of my first questions is how does one namespace handlers in a

Re: [ClojureScript] namespacing re-frame handlers

2015-03-13 Thread Jamie Orchard-Hays
Thanks, Mike. I have had similar thoughts. I'm just not there yet. I'm just past baby steps, but I'll be building a decent-sized SPA soon, so thinking about these issues already. Cheers, Jamie On Mar 12, 2015, at 10:56 PM, Mike Thompson m.l.thompson...@gmail.com wrote: Hmm. I should