Yes the point is that #2 is a separate interesting discussion on its own
right.
But I only want feedback about how to compute modules.
On Sunday, January 11, 2015, Mike Haney wrote:
> So just to be clear, this is a compiler change only? There are no
> proposed changes to namespace loading, i.e
So just to be clear, this is a compiler change only? There are no proposed
changes to namespace loading, i.e. if you load a namespace and the module
hasn't been loaded yet, it will just fail?
That's fine with me, I just want to make sure everyone's on the same page.
--
Note that posts from ne
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
> Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
> Sorry. :( If you don't *really* need jQuery, you should probably elide it.
> Google Closure provides a ton of advanced compilation compatibl
#2 isn't on the table for this. Let's keep this thread focused please.
Thanks.
--module is described at the command line when querying help for the Google
Closure Compuler.
On Sunday, January 11, 2015, Daniel Kersten wrote:
> Re #2, for me this is interesting for performance than anything else.
Re #2, for me this is interesting for performance than anything else. Ie
loading only what is needed, when needed.
David, do you have a link or anything for closure modules by any chance?
Despite being a search company, I've found it difficult to turn up much in
the way of documentation. I did see
prim-seq
On Sunday, January 11, 2015, Jonathon McKitrick
wrote:
> Well, that's better than what I was using:
>
> (set! (.-display (.-style (goog.dom/getElement "rcontent"))) "block")
>
> Now, why can't I turn an HTMLOptionsCollection into a seq?
>
> On Sunday, January 11, 2015 at 7:11:24 PM UTC-
2 is out of scope wrt. compiler support. But as far as I know this is
something that should be solvable on your own with Closure Modules.
On Sunday, January 11, 2015, Mike Haney wrote:
> There are 2 use cases I would like to see supported by this:
>
> 1) generating multiple apps from the same co
There are 2 use cases I would like to see supported by this:
1) generating multiple apps from the same code base. For my current project,
there is the main web app, an admin interface, and a mobile (Cordova) version.
There is a lot of shared code, and currently I am just cheating and building
Well, that's better than what I was using:
(set! (.-display (.-style (goog.dom/getElement "rcontent"))) "block")
Now, why can't I turn an HTMLOptionsCollection into a seq?
On Sunday, January 11, 2015 at 7:11:24 PM UTC-5, David Nolen wrote:
> Use goog.dom.classes
>
> http://docs.closure-library.
Use goog.dom.classes
http://docs.closure-library.googlecode.com/git-history/b75212a4258f8190d08fd518e16efe764d9d/closure_goog_dom_classes.js.html
goog.dom.classes.toggle with a CSS display none class should get the job
done.
That or you can use goog.dom.style
goog.dom.style.setStyle(el, "di
On Sunday, January 11, 2015 at 7:01:55 PM UTC-5, Jonathon McKitrick wrote:
> On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
> > Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
> > Sorry. :( If you don't *really* need jQuery, you should prob
On Sunday, January 11, 2015 at 7:01:55 PM UTC-5, Jonathon McKitrick wrote:
> On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
> > Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
> > Sorry. :( If you don't *really* need jQuery, you should prob
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
> Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
> Sorry. :( If you don't *really* need jQuery, you should probably elide it.
> Google Closure provides a ton of advanced compilation compatibl
Currently looking into supporting Google Closure Modules. They allow
breaking up advanced compiled builds so everything need not be loaded all
at once. This would help a lot with load latency in larger ClojureScript
applications.
A basic sketch underway here:
https://gist.github.com/swannodette/0
First, I want to point out that I am NOT knocking Reagent at all. I have used
it for months now and I like the library and have been a very vocal proponent
of it on this group and elsewhere. For many if not most apps, it's all you
will ever need.
That being said, there are 2 challenges I am f
Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
Sorry. :( If you don't *really* need jQuery, you should probably elide it.
Google Closure provides a ton of advanced compilation compatible functionality
you would otherwise be using jQuery for.
On Sunday, January 11, 2
Hi Jonathon, try the :pseudo-names compiler option [1] to get more insight into
what might be going wrong with your "is not a function" error.
[1] https://github.com/clojure/clojurescript/wiki/Compiler-Options#pseudo-names
--
Note that posts from new members are moderated - please be patient wi
On Sunday, January 11, 2015 at 4:22:08 PM UTC-5, adrian...@mail.yu.edu wrote:
> That's almost certainly an externs issue. Looks to me like you need to supply
> externs for react.js.
When I add "reagent/react.js" to the externs vector, I get this error:
Jan 11, 2015 4:27:43 PM com.google.javascr
That's almost certainly an externs issue. Looks to me like you need to supply
externs for react.js.
On Sunday, January 11, 2015 at 4:00:19 PM UTC-5, Jonathon McKitrick wrote:
> Let's try this again, with more isolated cases. I now have 2 working build
> profiles, prod and dev. The dev code is
Let's try this again, with more isolated cases. I now have 2 working build
profiles, prod and dev. The dev code is working the way I want, but I want
full optimizations for the prod build. Currently, I get this error in an event
handler of my app:
TypeError: kt.a(...).Hf is not a function
T
Matt,
if you keep all your state in Reagent atoms, that’s perfectly fine, you’ll
probably get no benefits from moving to Rum.
Rum idea is not to lock you down to a single storage model. Sometimes your
dataflow is trickier that just atoms, e.g. you need components to react to
DataScript events,
That looks like it is almost there; try uncommenting :optimizations :advanced
as well as :externs and remove the trailing slash from :output-dir. I don't
think the latter actually matters, but for the purposes of debugging I like to
isolate sources of uncertainty.
On Sunday, January 11, 2015 a
> Specify :source-map "path/to/source.map.js" in your :compiler options.
I'm making progress. I couldn't get source-map to work with output-dir and a
simple filename. It needed the entire path, as you posted.
Next, I had to disable :closure-warnings because of this error:
Compiling "resources
On Sunday, January 11, 2015 at 1:01:33 PM UTC-5, Jonathon McKitrick wrote:
> Let's start with source maps. How can I get them working while still
> optimizing the output from the compiler?
>
> On Sunday, January 11, 2015 at 11:39:35 AM UTC-5, David Nolen wrote:
> > OK, but you have not explained
Let's start with source maps. How can I get them working while still
optimizing the output from the compiler?
On Sunday, January 11, 2015 at 11:39:35 AM UTC-5, David Nolen wrote:
> OK, but you have not explained what exactly is not working for each of them?
--
Note that posts from new members
Could you describe some of these cases where the Reagent model isn't expressive
enough? I'm having a hard time understanding the use case.
Thanks!
M
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subs
OK, but you have not explained what exactly is not working for each of them?
David
On Sun, Jan 11, 2015 at 11:27 AM, Jonathon McKitrick
wrote:
> Here's one set
>
> :cljsbuild {:builds
> {:prod
>{:source-paths ["src/cljs"]
> :compiler {:output-to "
This does not include my attempts to get source maps working.
--
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
Here's one set
:cljsbuild {:builds
{:prod
{:source-paths ["src/cljs"]
:compiler {:output-to "resources/public/js/main.js"
:optimizations :advanced
;;:pretty-print true
:p
I really didn't put that much thought into it and it can easily be changed
later if/when Om has a web presence other than the GitHub repository.
David
On Sun, Jan 11, 2015 at 9:16 AM, Daniel Kersten wrote:
> I don't see the benefit of putting the "org" in at all if its nothing to
> do with a do
We need more information. What do your build settings look like?
Thanks,
David
On Sun, Jan 11, 2015 at 10:53 AM, Jonathon McKitrick
wrote:
> Is there a guide on how to combine optimization settings, source maps,
> externs, and maybe the preamble in the same project and/or build
> configuration?
Is there a guide on how to combine optimization settings, source maps, externs,
and maybe the preamble in the same project and/or build configuration? It
seems when I change one, I inadvertently break the others.
I'm using jQuery and React in my preamble, and I would like to enable advanced
op
Is there a guide on how to combine optimization settings, source maps, externs,
and maybe the preamble in the same project and/or build configuration? It
seems when I change one, I inadvertently break the others.
I'm using jQuery and React in my preamble, and I would like to enable advanced
op
It's pretty new so I guess it really is still a work in progress, but I
find the text confusing as it makes it sounds like the "documentation site"
is what's still a work in progress.
In any case, I'm also very interested in porting this to Om. I'm thinking
an auto generated wrapper like what boot
I don't see the benefit of putting the "org" in at all if its nothing to do
with a domain name. I mean, what does "org.om" even mean and what benefit
does it add over just "om" if its not a reference to a domain name? At the
end of the day it doesn't really matter though, I guess.
Anyway, thanks
35 matches
Mail list logo