[ClojureScript] Re: [ANN] CLJSJS

2015-01-06 Thread Thomas Heller
FWIW there is absolutely no need to ship a production/development version of the code. The Closure Compiler is perfectly capable of minifying any JS source (NOT advanced optimize, just minify). Therefore the full JS + externs would be enough. As a build tool author I don't quite agree with

Re: [ClojureScript] Re: [ANN] CLJSJS

2015-01-06 Thread Martin Klepsch
FWIW there is absolutely no need to ship a production/development version of the code. The Closure Compiler is perfectly capable of minifying any JS source (NOT advanced optimize, just minify). That's right but for some projects the assumption that .min.js means minified is just not true. E.g.

Re: [ClojureScript] Re: [ANN] CLJSJS

2015-01-06 Thread Thomas Heller
That's right but for some projects the assumption that .min.js means minified is just not true. E.g. React ships with different logging levels enabled based on wether you're including the development or production build. I'm sure there are more projects that include extra debugging stuff

Re: [ClojureScript] Cannot get Swannodette's optimizations to work

2015-01-06 Thread Jonathon McKitrick
No luck: ➜ pts git:(integration-january) ✗ rm *-init.clj remove b9bb1d9002680b93c59fea118d80a7f390e89554-init.clj? y ➜ pts git:(integration-january) ✗ ls Procfile project.clj resources src system.properties targettest ➜ pts

[ClojureScript] Re: Being productive with clojurescript

2015-01-06 Thread Colin Yates
On Monday, 5 January 2015 18:26:19 UTC, Arnaud Bailly wrote: I could imagine generating schemas from server-side (Haskell) code... Givenpat data structures used in the client actually come from the server.  Schema's declaration is done through pure data (yet another win for data everywhere)

Re: [ClojureScript] Cannot get Swannodette's optimizations to work

2015-01-06 Thread David Nolen
The error seems somewhat clear to me - cljsbuild itself cannot be found. But not sure why cljsbuild is involved at all given you're just trying to start Clojure *directly*. Make sure you haven't set up any global lein user profiles or anything like that. These inevitably cause problems IME.

Re: [ClojureScript] Re: [ANN] CLJSJS

2015-01-06 Thread Juho Teperi
On Tuesday, January 6, 2015 1:20:04 PM UTC+2, Thomas Heller wrote: That's right but for some projects the assumption that .min.js means minified is just not true. E.g. React ships with different logging levels enabled based on wether you're including the development or production

[ClojureScript] Re: export namespace with module.exports?

2015-01-06 Thread stephanos
On Monday, January 5, 2015 9:38:10 PM UTC+1, stephanos wrote: Hey there, I'm working on an Om application that can also be rendered on a Node server. So I set up my build to compile a app-node.js file that includes react.js via :preamble. To run tests on the output I need to start the

Re: [ClojureScript] Issues with clojurescript 0.0-2665 backwards compat

2015-01-06 Thread Brian Hurlow
Hi David, src/cljs looks like this: ├── components │   ├── admin.cljs │   ├── controls.cljs │   ├── creator.cljs │   ├── error.cljs │   ├── extension.cljs │   ├── feed │   │   ├── ui.cljs │   │   └── util.cljs │   ├── feed.cljs │   ├── follow-grid.cljs │   ├── loader.cljs │   ├── message.cljs │ 

Re: [ClojureScript] Issues with clojurescript 0.0-2665 backwards compat

2015-01-06 Thread Brian Hurlow
yep. that was the issue. Makes sense to follow clj convention as well. Thanks for all your help! -- 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

[ClojureScript] Issues with clojurescript 0.0-2665 backwards compat

2015-01-06 Thread Brian Hurlow
Hey All! Very excited to see all the advancements going in in cljs land. Recently updated my cljs project from 0.0-2511 to 0.0-2665 and it will no longer build correctly. stack trace looks something like this: Compiling resources/public/js/dev.js failed. clojure.lang.ExceptionInfo: failed

Re: [ClojureScript] Issues with clojurescript 0.0-2665 backwards compat

2015-01-06 Thread David Nolen
I haven't seen this. Does that namespace exist and where is located in your source tree? Also make sure you've actually cleaned your build, removed all cached trampolines, removed target directory etc. David On Tue, Jan 6, 2015 at 4:13 PM, Brian Hurlow bhur...@gmail.com wrote: Hey All! Very

Re: [ClojureScript] Re: [ANN] CLJSJS

2015-01-06 Thread pandeiro
I'm pretty sure codemirror's addons (eg clojure mode) can just be included as script tags; so therefore they could be packaged as cljsjs, with a dependency on codemirror itself, no? -- Note that posts from new members are moderated - please be patient with your first post. --- You received

Re: [ClojureScript] Issues with clojurescript 0.0-2665 backwards compat

2015-01-06 Thread David Nolen
Your project does not have the right structure, if it worked in the past it was purely by accident. namespaces must respect classpath conventions, i.e.: src/buffalo/state.cljs David On Tue, Jan 6, 2015 at 5:34 PM, Brian Hurlow bhur...@gmail.com wrote: Hi David, src/cljs looks like this:

Re: [ClojureScript] Re: Being productive with clojurescript

2015-01-06 Thread Arnaud Bailly
-- Arnaud Bailly twitter: abailly skype: arnaud-bailly linkedin: http://fr.linkedin.com/in/arnaudbailly/ On Tue, Jan 6, 2015 at 2:29 PM, Colin Yates colin.ya...@gmail.com wrote: Wouldn't EDN help? Don't know how this works actually but given I have full control of server I could generate