[ClojureScript] Re: Comparing React.js libraries

2014-06-22 Thread Jonathon McKitrick
On Friday, June 20, 2014 10:29:38 AM UTC-4, Jonathon McKitrick wrote: I discovered that along with Om, there are Reagent and Quiescence. Has anyone worked with the latter alternatives, and how might I decide what the tradeoffs are for using each of them? So tell me if this is accurate

Re: [ClojureScript] Re: Comparing React.js libraries

2014-06-23 Thread Jonathon McKitrick
On Monday, June 23, 2014 3:13:26 AM UTC-4, David Della Costa wrote: Leaving aside the irrelevant details of creating an absolutely positioned widget of some sort, here's how I would create a component which keeps track of window resizing events. It's very simple and doesn't require

Re: [ClojureScript] cljs-http inexplicably stopped producing working code

2014-06-28 Thread Jonathon McKitrick
. Code helps so much in trying to help folks out. Will On Friday, June 27, 2014 2:50:54 PM UTC-4, Tony Tam wrote: can you post the actual clojurescript code? On Thursday, June 26, 2014 12:57:52 PM UTC-7, Jonathon McKitrick wrote: I hate asking questions like these, but I'm out

[ClojureScript] Modal implementation

2014-06-29 Thread Jonathon McKitrick
What current library provides basic modals, like jQuery and Bootstrap offer? -- 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

Re: [ClojureScript] Re: Modal implementation

2014-06-29 Thread Jonathon McKitrick
On Sunday, June 29, 2014 2:00:04 PM UTC-4, William Sommers wrote: Should you want to, you could just use bootstrap and jquery with cljs. I'm trying that approach now. I went with the declarative approach with bookstrap to minimize code dependencies, but that's not working well, so I'm going

[ClojureScript] Reagent in a modal with a select component

2014-06-30 Thread Jonathon McKitrick
I am using jQuery and the Bootstrapjs modal to pop up a dialog to edit a row from a table. When the dialog Here is the code for the component in the dialog: (defn select-component [] (let [val (atom nil)] (fn [id choices name-fn value-fn selected-item] (js/alert (str Select

Re: [ClojureScript] Reagent in a modal with a select component

2014-06-30 Thread Jonathon McKitrick
I ended up setting up another atom to hold the unique id of the record being edited. When that changes, I reset VAL as well. -- Jonathon McKitrick On Mon, Jun 30, 2014 at 11:47 AM, Jonathon McKitrick jmckitr...@gmail.com wrote: I am using jQuery and the Bootstrapjs modal to pop up a dialog

[ClojureScript] Reactjs/Reagent dependent selects in bootstrap modal

2014-07-14 Thread Jonathon McKitrick
Before I start posting code, I want to describe my logic to make sure I'm on the right path. I show a table scheduling lectures. Each row (reagent component) has a date, a department, a speaker, and a topic. Each of these (except date) is a dropdown, whose list of possible values is

[ClojureScript] Dependent picklists using Reagent

2014-08-02 Thread Jonathon McKitrick
I have three select components (picklists) which are dependent. The first determines the values of the second, and so on to the third. I'm able to get the first pair working, but the second pair has been tricky. Has anyone implemented something similar? -- Note that posts from new members

Re: [ClojureScript] Re: Dependent picklists using Reagent

2014-08-04 Thread Jonathon McKitrick
I started researching core.async after reading your post. I'm curious how it's implemented in single-threaded javascript. -- Jonathon McKitrick On Mon, Aug 4, 2014 at 12:55 PM, Harsha msreehar...@gmail.com wrote: I'm not familiar with that approach of using core.async. I'm simply using

[ClojureScript] Is there a Base64 encode/decode library for Clojurescript?

2014-08-08 Thread Jonathon McKitrick
Or an easy way to integrate an existing 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 and stop receiving

[ClojureScript] Authentication for AJAX calls

2014-08-15 Thread Jonathon McKitrick
I've applied Friend to my page authentication with great success, but I'm not sure how to do the same with my AJAX API calls. Obviously, you don't want to pass cleartext credentials around. What have you all used in this case? -- Note that posts from new members are moderated - please be

[ClojureScript] Re: Authentication for AJAX calls

2014-08-17 Thread Jonathon McKitrick
On Friday, August 15, 2014 5:25:03 PM UTC-4, Tobias Quinn wrote: I've used Friend for a single page app. It serves the main page to anyone and has a route that can issue a json web token (jwt) using http basic authentication. I used clj-jwt to generate the token. Then, the api routes

[ClojureScript] Testing Reagent code

2014-08-19 Thread Jonathon McKitrick
I have a working Reagent single-page app, and a very primitive cljs test: (ns outlines.test (:require-macros [cemerick.cljs.test :refer (is deftest with-test run-tests testing test-var)]) (:require [cemerick.cljs.test :as t] ;;[outlines] ))

Re: [ClojureScript] Authentication for AJAX calls

2014-08-26 Thread Jonathon McKitrick
? -- Jonathon McKitrick On Sun, Aug 17, 2014 at 1:59 PM, Jonathon McKitrick jmckitr...@gmail.com wrote: Can this be done without SSL? On Sunday, August 17, 2014, Jonathon McKitrick jmckitr...@gmail.com wrote: On Friday, August 15, 2014 5:25:03 PM UTC-4, Tobias Quinn wrote: I've used Friend

[ClojureScript] Organization of project file for multiple single-page apps

2014-09-09 Thread Jonathon McKitrick
I have about 6 pages with their own cljs code, and I'd also like to have dev, pre-prod, and prod compilation settings. What's the best way to organize the project file to do this? I currently have something like this: :cljsbuild {:builds {:outlines {:source-paths

Re: [ClojureScript] Re: Organization of project file for multiple single-page apps

2014-09-09 Thread Jonathon McKitrick
Well, it's several destination .js files, basically. And I also would like separate cljs-build profiles for different compiler settings. I'm learning my way around cljs-build, and this is my next goal. -- Jonathon McKitrick On Tue, Sep 9, 2014 at 9:12 AM, Zubair Quraishi zuba...@gmail.com

Re: [ClojureScript] Re: Organization of project file for multiple single-page apps

2014-09-09 Thread Jonathon McKitrick
I guess that could be done, and yes, it does deal with code duplication. I guess with optimizations on, there's no reason to worry about code size? -- Jonathon McKitrick On Tue, Sep 9, 2014 at 10:12 AM, Gary Trakhman gary.trakh...@gmail.com wrote: Maybe this is a stupid question, but why

Re: [ClojureScript] Re: Organization of project file for multiple single-page apps

2014-09-09 Thread Jonathon McKitrick
That's a very good point. The overhead of all the closure library stuff and CLJS code is much more than my client code. That's a great idea -- Jonathon McKitrick On Tue, Sep 9, 2014 at 11:05 AM, Gary Trakhman gary.trakh...@gmail.com wrote: Well, one cached possibly-larger file vs 6

[ClojureScript] API testing via CLJS tests

2014-09-15 Thread Jonathon McKitrick
I have server-side tests and I'd like to add integration tests. I'd like tests that will let me know the client needs updated when the API on the server changes. Given that I'm using all AJAX calls on the client to call the API, is there a recommended way to check these calls via client-side

[ClojureScript] Problem with test profile and cljsbuild tests

2014-09-18 Thread Jonathon McKitrick
Given this in my profiles section: :test {:dependencies [[ring-mock 0.1.5] [org.clojars.runa/conjure 2.1.3]] :cljsbuild {:builds {:client {:source-paths ^:replace [src/cljs

[ClojureScript] How to integrate clojurescript macros into the build

2015-01-02 Thread Jonathon McKitrick
I cannot figure out how to do this. I have a few simple macros I'd like to use in the clojurescript side of my project, but I'm constantly gettings errors like these: Compiling ClojureScript. Compiling resources/public/js/main.js from [src/cljs]... WARNING: No such namespace: pts.macros at

[ClojureScript] Cannot get Swannodette's optimizations to work

2015-01-05 Thread Jonathon McKitrick
I'm following these instructions: http://swannodette.github.io/2014/12/22/waitin/ and I'm up to compiling ClojureScript AOT with this command: lein trampoline run -m clojure.main And this is the error output: Exception in thread main java.io.FileNotFoundException: Could not locate

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] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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

[ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
Here's one set :cljsbuild {:builds {:prod {:source-paths [src/cljs] :compiler {:output-to resources/public/js/main.js :optimizations :advanced ;;:pretty-print true

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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 compatible

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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 probably

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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 probably

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
, 2015 at 7:01 PM, Jonathon McKitrick jmcki...@gmail.com 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 probably elide

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Jonathon McKitrick
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 compatible

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-08 Thread Jonathon McKitrick
Problem solved. It turns out the namespace error came before a syntax error, which was the actual problem. Once I fixed that, remembering that the macro code is spliced into the destination code and needs function calls to be correctly namespaced, the problem was basically solved. Thanks for

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

2015-01-08 Thread Jonathon McKitrick
Problem solved. I had a cljsbuild hook in the project file, and obviously that attempts to start the cljs compiler. I took that out, and it worked fine. I didn't get quite as dramatic a speed improvement as I was expecting, but I'll keep working on it. thanks! -- Note that posts from new

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-07 Thread Jonathon McKitrick
-paths [src/cljs]}) HTH, /thomas On Saturday, January 3, 2015 12:27:56 AM UTC+1, Jonathon McKitrick wrote: I cannot figure out how to do this. I have a few simple macros I'd like to use in the clojurescript side of my project, but I'm constantly gettings errors like

[ClojureScript] Re: How to integrate clojurescript macros into the build

2015-01-07 Thread Jonathon McKitrick
I might have solved it... but I'm not sure yet. I'll follow up. -- 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

Re: [ClojureScript] Issues building on Heroku after 0.0-2511

2015-02-19 Thread Jonathon McKitrick
Excellent! Thanks for all the work on CLJS. On Thursday, February 19, 2015 at 7:04:33 PM UTC-5, David Nolen wrote: I believe this is a classloader issue that's since been resolved on master. There are some other important REPL related issues holding up a release but we're trying to work

[ClojureScript] Issues building on Heroku after 0.0-2511

2015-02-19 Thread Jonathon McKitrick
I'm using the latest versions of CLJS locally with no issues. But when I deploy to Heroku, I get this error: Compiling resources/public/js/main.js from (src/cljs src/cljs src/cljs/common src/cljs src/cljs/common)... Compiling resources/public/js/main.js failed.

[ClojureScript] How to test XHTTP requests

2015-03-14 Thread Jonathon McKitrick
Is there a testing mode where the server runs and then the client tests against the server API calls? I'm thinking of using the asynchronous testing ability of clojurescript.test, but I'm not sure how to make it work. -- Note that posts from new members are moderated - please be patient with

[ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-16 Thread Jonathon McKitrick
The cljsjs issue is fixed! On Monday, March 16, 2015 at 7:03:00 PM UTC-4, David Nolen wrote: And cut 0.0-3123 based on feedback from releases earlier today. One fix addresses redundant information in the dependency graph when compiling, the other fixes an issue when using advanced

[ClojureScript] Suggestions for optimization

2015-03-16 Thread Jonathon McKitrick
I'd like suggestions on how to take advantage of current optimization settings and perhaps the new module feature, especially in production. I'm going to explain some of the decisions I've made, then paste in the relevant bits of my project file. 1. It's a tabbed app, where each tab is a SPA

[ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-16 Thread Jonathon McKitrick
I just tried a build with this version, and I'm getting this error in my CLJS test suite, which does not happen with 0.0-2985. Compiling ClojureScript. Compiling resources/public/js/unit-test.js from [src/cljs test/cljs]... Successfully compiled resources/public/js/unit-test.js in 17.483

[ClojureScript] Yet another error starting weasel....

2015-03-17 Thread Jonathon McKitrick
This time in the browser 16:25:10.455 goog.require could not find: cljs.core1 main.js:19687:6 goog.require() main.js:19687 weasel.repl.connect/connect__delegate/goog.require/() main.js:70424 anonymous main.js:85280 It's really frustrating that I used to have this working perfectly --

[ClojureScript] Re: Clojure and Clojurescript REPL Workflow

2015-03-11 Thread Jonathon McKitrick
I'm interested as well. I'm plagued with constant issues now trying to run piggieback and weasel within cider, when this used to work. But I haven't figured out how to work exclusively in the repl with clojurescript either. I'm open to any of your suggestions in this area. There was a cider

[ClojureScript] Optimization settings frustration....

2015-03-12 Thread Jonathon McKitrick
I have identical cljs compiler settings for my local development (main) and for an uberjar deployed to Heroku. While the local version (lein run) works fine, the uberjar version (foreman start) which is deployed to Heroku gives this error: Reference Error: pts is not defined. `pts` is of

[ClojureScript] Is this the correct way to do a tooltip on a Reagent component?

2015-03-25 Thread Jonathon McKitrick
(defn edit-button-component [attrs] [:button.btn.btn-default attrs [:span.glyphicon.glyphicon-pencil]]) (defn edit-button-component-dec [] (with-meta edit-button-component {:component-did-mount #(.tooltip (js/$ (reagent.core/dom-node %)) #js {:title Test}) :component-will-mount

Re: [ClojureScript] INTERNAL COMPILER ERROR with 0.0-3126 advanced compilation

2015-03-26 Thread Jonathon McKitrick
I was about to submit an error report myself on a different issue, after I got all the detail together. I get a client-side error in generated code when using whitespace optimization. I'll try to get some details together today. On Thursday, March 26, 2015 at 6:49:57 AM UTC-4, David Nolen

[ClojureScript] Issues between Clojurescript.test 0.3.2 and 0.3.3 and using SlimerJS

2015-03-30 Thread Jonathon McKitrick
Issue #1: Running my test suite under 0.3.2 passes. Running it under 0.3.3 fails with this message: TypeError: 'null' is not an object (evaluating 'a.appendChild') and can be tracked down to this function used for testing React components: (defn add-test-div [name] (let [doc js/document

Re: [ClojureScript] Is there some new trick to advanced optimizations?

2015-03-26 Thread Jonathon McKitrick
Is there a simple way to track down which externs are not being resolved? The browser console just has cryptic, munged function names, of course, and I'm extern'ing the only libraries I'm using, AFAIK: jQuery and Bootstrap. On Thursday, March 26, 2015 at 1:07:01 PM UTC-4, Jonathon McKitrick

Re: [ClojureScript] Is there some new trick to advanced optimizations?

2015-03-26 Thread Jonathon McKitrick
Hmm. No success yet. Is there anything special required when using cljsjs packages, i.e. externs, settings, etc? -- 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] Is there some new trick to advanced optimizations?

2015-03-26 Thread Jonathon McKitrick
I'm about to make a monetary offer to anyone who can ScreenHero with me and fix this. Any takers? ;-) -- 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

Re: [ClojureScript] Re: Reagent client-side testing guide?

2015-03-03 Thread Jonathon McKitrick
I poked around, and found exactly what I needed in that template. Thanks! On Monday, March 2, 2015 at 9:32:33 AM UTC-5, ducky wrote: I suggest that you generate a project with testing using reagent-template and then inspect its project.clj and the test folder to see whats needed. It

Re: [ClojureScript] Re: Reagent client-side testing guide?

2015-03-02 Thread Jonathon McKitrick
How difficult is it to move an existing project into a template like this? -- Jonathon McKitrick On Mon, Mar 2, 2015 at 8:43 AM, ducky rohit.aggar...@gmail.com wrote: You can have a look here: https://github.com/reagent-project/reagent-template The reagent-template has a flag

[ClojureScript] Re: Reagent client-side testing guide?

2015-03-02 Thread Jonathon McKitrick
Here's what I'm currently trying and failing with: (defn new-id ([] (str container- (gensym))) ([id] (str container- id))) (defn new-node [id] (- (dommy/create-element div) (dommy/set-attr! id id))) (defn append-node [node] (dommy/append! (dommy/sel1 js/document :body)

Re: [ClojureScript] Re: Reagent client-side testing guide?

2015-03-05 Thread Jonathon McKitrick
I just opened an issue in that same project you might have insight on. -- Jonathon McKitrick On Tue, Mar 3, 2015 at 12:07 PM, ducky rohit.aggar...@gmail.com wrote: Thats great! -- Note that posts from new members are moderated - please be patient with your first post. --- You received

[ClojureScript] Reagent client-side testing guide?

2015-03-01 Thread Jonathon McKitrick
I've seen a number of articles on how to set up Om client-side testing, but I've not found anything similar (yet) for Reagent. Can anyone point the way, or explain a setup that has worked for you? -- Note that posts from new members are moderated - please be patient with your first post. ---

Re: [ClojureScript] Re: Issues building on Heroku after 0.0-2511

2015-02-25 Thread Jonathon McKitrick
the issue? I just thought maybe there were some namespacing features or dependency features that might help here. On Tuesday, February 24, 2015 at 8:43:38 PM UTC-5, David Nolen wrote: Hopefully addressed in 0.0-2913 yes. David On Tue, Feb 24, 2015 at 8:05 PM, Jonathon McKitrick jmcki

[ClojureScript] Re: Issues building on Heroku after 0.0-2511

2015-02-24 Thread Jonathon McKitrick
Is this fixed in a recent version now? -- 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

[ClojureScript] Two possible clojurescript errors with accompanying repos

2015-03-27 Thread Jonathon McKitrick
I've run across two optimization related issues I cannot get past. I followed the advice in 'reporting issues' on the ClojureScript wiki, and I've created 2 simple repos demonstrating the issues. These could be user error, but I've tried to remove anything clouding the issue. I thought it

[ClojureScript] Is there some new trick to advanced optimizations?

2015-03-26 Thread Jonathon McKitrick
I've been unable to get mine working: {:source-paths [src/cljs] ;;env/dev/cljs :compiler {:output-to resources/public/js/main.js :optimizations :advanced :cache-analysis true /js/bootstrap.min.js] :preamble [jquery/jquery-2.1.1.min.js

[ClojureScript] Slimerjs for client testing on OSX

2015-04-14 Thread Jonathon McKitrick
I used `brew install slimerjs` to install, and I have my env set up pointing to Firefox. I replaced phantomjs with slimerjs in my project file, and got this error when running client tests: Compiling ClojureScript. Compiling ClojureScript. Running ClojureScript test: client-test Error during

[ClojureScript] Question about ClojureScript codebase

2015-04-28 Thread Jonathon McKitrick
What would you say is the most complex, hard-to-grok code in the ClojureScript codebase? -- 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

Re: [ClojureScript] Two possible clojurescript errors with accompanying repos

2015-05-12 Thread Jonathon McKitrick
On Friday, March 27, 2015 at 12:23:55 PM UTC-4, David Nolen wrote: The way to avoid this in the future will be :main support under higher :optimizations settings than :none. Won't make it into the next release but no later than the one after that. Until then use the classpath (via

[ClojureScript] Recent guide on understanding Closure/ClojureScript externs and libs

2015-05-12 Thread Jonathon McKitrick
There was a recent article that progressively and thoroughly explained Closure libraries, and it came out in the last couple of weeks IIRC. I *just* saw it recently, thought I added it to Evernote, but Alas! I cannot find it. Does anyone recall the article I'm thinking of? -- Note that posts

[ClojureScript] How to run integration tests for client/server interaction

2015-04-07 Thread Jonathon McKitrick
I currently use lein test aliases to run server-side tests and client-side tests. But that currently means my client-side AJAX calls are either mocked or just return fixture data. How can I run client-side tests which will actually call a running instance of the server to test live data? --

[ClojureScript] Client/server testing question

2015-06-16 Thread Jonathon McKitrick
Has anyone figured out a way to run client tests against a running server as a leiningen task? I'd like one task that would stand up the server, start cljsbuild tests, and let me verify client-side behavior against a running server and database. -- Note that posts from new members are

[ClojureScript] Migrating from JSON to EDN

2015-09-04 Thread Jonathon McKitrick
I have a basic SPA app using JSON for client/server communication. I'm considering switching to EDN. * Is there any reason I should consider staying with JSON, assuming this API will not be consumed elsewhere? * How complex is the changeover on both client and server sides? * Are there any

[ClojureScript] Problem with PhantomJS hanging in some versions of ClojureScript

2015-09-21 Thread Jonathon McKitrick
I'm using this project as a guideline on moving from clojurescript.test to cljs.test with PhantomJS as the calling program: https://github.com/testdouble/clojurescript.csv In my project the clojurescript tests run from lein were hanging at the end. I finally bisected and found out that at

[ClojureScript] Tips on Clojurescript/Figwheel on Firefox rather than Chrome

2016-02-16 Thread Jonathon McKitrick
Out of a desire to support free software and open standards, and also to somewhat protect my privacy, I've been trying to use Firefox as my main browser. However, I've found that Firefox is slow in comparison, and has a nagging issue with caching that makes it frustrating to use Figwheel or any

[ClojureScript] Reagent/routing/SPA question

2017-04-22 Thread Jonathon McKitrick
I have an app that's been working wonderfully for a few years now. I want to improve it by adding links. If you see a person's name, I want to be able to click on that name and the app will jump to the 'user' page (simple enough) and then move the browser view to that particular item. In static

[ClojureScript] MySQL on NodeJS

2017-09-22 Thread Jonathon McKitrick
Hi all, I'm slowly but surely weaseling Clojure and Clojurescript into our company's codebase. I'm tasked with a script which will read from a MySQL database and generate a very simple report. So far, I have a NodeJS REPL project up and running, but I'm not quite sure how to get Node's MySQL

[ClojureScript] How to make a cljs-node project install

2017-10-03 Thread Jonathon McKitrick
I have my first NodeJS clojurescript project, and it WFM (Works For Me). I’ve run `lein cljsbuild once` and `node XXX` to run the script many times, though a few times I found `node_modules` was not populated, the after running builds again, it would miraculously re-appear. Now that my

[ClojureScript] Re: MySQL on NodeJS

2017-09-25 Thread Jonathon McKitrick
So I've come to the conclusion that the REPL and CIDER do not pick up any of the NodeJS namespaces. I have to build the project and run it with node instead. Not sure exactly why this is the case On Monday, September 25, 2017 at 7:56:16 AM UTC-4, Jonathon McKitrick wrote: > >

[ClojureScript] Re: MySQL on NodeJS

2017-09-25 Thread Jonathon McKitrick
^ Error: Can't resolve 'url' in '/Users/devmbp42/arc/check-templates/node_modules/mysql/lib' at onError (/Users/devmbp42/arc/check-templates/node_modules/enhanced-resolve/lib/Resolver.js:61:15) So it's finding the modules and attempting to load them. But I don't know enough about NodeJ

[ClojureScript] Looking for Reagent-based framework/library suggestions

2018-01-29 Thread Jonathon McKitrick
My last non-trivial app used Reagent, but I did the rest of the wiring manually. Now that there are many alternatives out there, I'd like to hear your suggestions and comparisons, as I'm about to select one for a non-trivial team (not personal) project. Re-frame is the obvious choice, but I've

[ClojureScript] Any cutting edge reagent/reframe demos out there?

2018-02-02 Thread Jonathon McKitrick
I'd love a demo that I can show my team to illustrate what reagent and reframe can do. Does anyone know of any? -- 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] How can I include npm-based styles in my Clojurescript project?

2018-02-13 Thread Jonathon McKitrick
I’m starting a Re-frame project that will need some less/sass styles found in an NPM repo at our company. I’m not very familiar with the css pipelines out there, but I just need to import this project and figure out how to get the styles I need into my front-end. Where do I start? -- Note

[ClojureScript] Trying to package 2 react components with cljsjs

2018-02-27 Thread Jonathon McKitrick
I need https://www.npmjs.com/package/react-avatar-editor and https://www.npmjs.com/package/react-image-gallery for a CLJS project. I followed the instructions here to start the package: https://github.com/cljsjs/packages/wiki/Creating-Packages using this link for the first library above: