Re: ClojureScript and development workflow

2014-11-12 Thread Geraldo Lopes de Souza
Collin, To achieve the basic of what you said: lein new chestnut Because of the other pieces I had to extract the code into the stack I'm using. But it's very good for a start. On Saturday, November 8, 2014 11:47:37 AM UTC-2, Colin Yates wrote: > > Figwheel plus om plus immutable data is just

Re: ClojureScript and development workflow

2014-11-11 Thread Erlis Vidal
Any update on how to do this from LightTable? On Tue, Sep 11, 2012 at 7:48 PM, Chris Granger wrote: > FWIW, I'm working on this with Light Table, which removes a lot of the > difficulties here - it will be include this script tag and you're ready to > go. There's no reason that we need to jump t

Re: ClojureScript and development workflow

2014-11-08 Thread Colin Yates
Figwheel plus om plus immutable data is just great. Throw in "lein garden auto" and the world is a better place. Highly recommend it. On Friday, 7 November 2014 02:17:08 UTC, Daniel Szmulewicz wrote: > > My experience has been that the promise of hot reloadable code in the > browser was fulfill

Re: ClojureScript and development workflow

2014-11-06 Thread Daniel Szmulewicz
My experience has been that the promise of hot reloadable code in the browser was fulfilled most reliably by lein-figwheel. I have relinquished all other solutions (which gave me trouble), and I am a happy with my newfound cljs workflow. https://github.com/bhauman/lein-figwheel On Monday, Septem

Re: ClojureScript and development workflow

2014-11-06 Thread Chris Sims
I’m not sure that the original question is still valid, as it’s over 2 years old now. I’ve had success using figwheel[1] to automatically recompile Clojurescript and send the updated js to the browser, sans reloading. [1] https://github.com/bhauman/lein-figwheel > On Nov 6, 2014, at 4:57 PM, A

Re: ClojureScript and development workflow

2014-11-06 Thread Asim Jalis
Hi Laurent, For refreshing the browser, I call (.reload js/location) from the browser REPL. So this is the workflow: Terminal 1: lein cljsbuild auto dev Terminal 2: lein trampoline cljsbuild repl-listen Browser: localhost:9000/myapp.html 1. I make change to the CLJS file. 2. cljsbuild auto dev

Re: ClojureScript and development workflow

2012-09-11 Thread Chas Emerick
dj looks interesting, thanks for the link. :-) - Chas On Sep 10, 2012, at 8:31 PM, Brent Millare wrote: > I emit the clojurescript code myself by calling cljs.closure/build myself and > put this into the html file. I cache the code using > clojure.core.memoize/memo-fifo with my own function th

Re: ClojureScript and development workflow

2012-09-11 Thread Chris Granger
FWIW, I'm working on this with Light Table, which removes a lot of the difficulties here - it will be include this script tag and you're ready to go. There's no reason that we need to jump through a bunch of hoops here. My plan is that the next release (sometime after strange loop) will include

Re: ClojureScript and development workflow

2012-09-11 Thread Steve Buikhuizen
Hi Laurent, I've been using CCW and cljsbuild for three months and it is working well for me but I suspect that my workflow can improve. I run cljsbuild auto (incremental mode) and edit cljs files in CCW, then refresh the browser (approx 6sec compile time) I suspect that I could improve my wor

Re: ClojureScript and development workflow

2012-09-11 Thread Brent Millare
I emit the clojurescript code myself by calling cljs.closure/build myself and put this into the html file. I cache the code using clojure.core.memoize/memo-fifo with my own function that takes the dependent files timestamps as args (so that changes result in recompiles). Using ring, pages with

Re: ClojureScript and development workflow

2012-09-11 Thread Takahiro Hozumi
Hi, > I guess that at least the following require a restart. Please correct / > explain as needed : > > - change in CSS file on disk ? > - change in template file (either enfocus / hiccup-on-the-browser -don't > remember the name) ? > > and also when doing certain changes to the ClojureScript code

Re: ClojureScript and development workflow

2012-09-11 Thread Laurent PETIT
2012/9/11 Chas Emerick > On Sep 11, 2012, at 4:00 AM, Laurent PETIT wrote: > > 2012/9/10 Chas Emerick > >> I've been using a combination of lein-cljsbuild to keep the on-disk >> generated code fresh and piggieback[1] for all of my cljs REPL needs. >> > > Hello Chas, > > I've tried to use piggieb

Re: ClojureScript and development workflow

2012-09-11 Thread Chas Emerick
On Sep 11, 2012, at 4:00 AM, Laurent PETIT wrote: > 2012/9/10 Chas Emerick > I've been using a combination of lein-cljsbuild to keep the on-disk generated > code fresh and piggieback[1] for all of my cljs REPL needs. > > Hello Chas, > > I've tried to use piggieback. My current stack for playin

Re: ClojureScript and development workflow

2012-09-11 Thread Laurent PETIT
2012/9/10 Chas Emerick > I've been using a combination of lein-cljsbuild to keep the on-disk > generated code fresh and piggieback[1] for all of my cljs REPL needs. > Hello Chas, I've tried to use piggieback. My current stack for playing with the concepts is leiningen2 on the command line (to s

Re: ClojureScript and development workflow

2012-09-11 Thread Laurent PETIT
2012/9/10 Takahiro Hozumi > Hi, > I refresh browser every time I change cljs files. > > > "Using the REPL as the main way to deliver code to the browser means > never having to refresh the page. One could theoretically build an entire > application without a single page refresh. If you find yours

Re: ClojureScript and development workflow

2012-09-11 Thread Murtaza Husain
Hi Paul, Thanks for the workflow. - use the Clojure REPL as much as possible, even for my CLJS code. Afterall, it's just Clojure, right? This also encourages good program design, keeping browser-specific code in a single namespace How do you achieve the above ? Do you specify your cljs

Re: ClojureScript and development workflow

2012-09-10 Thread Paul deGrandis
Hi Laurent, I've been putting a few ClojureScript apps into production throughout this year with much success. Because of earlier limitations/sensitivities in the browser-repl, my workflow is a little different than those described above. Typically I: - have cljsbuild-auto running - use the C

Re: ClojureScript and development workflow

2012-09-10 Thread Takahiro Hozumi
Hi, I refresh browser every time I change cljs files. > "Using the REPL as the main way to deliver code to the browser means never having to refresh the page. One could theoretically build an entire application without a single page refresh. If you find yourself refreshing the page after every

Re: ClojureScript and development workflow

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 8:50 PM, Laurent PETIT wrote: > > > 2012/9/10 Laurent PETIT > >> 2012/9/10 Denis Labaye >> >>> >>> >>> On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT >>> wrote: >>> Hello, A "ClojureScript workflow" newbie question. People seem to be using a lot

Re: ClojureScript and development workflow

2012-09-10 Thread Laurent PETIT
2012/9/10 Laurent PETIT > 2012/9/10 Denis Labaye > >> >> >> On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT >> wrote: >> >>> Hello, >>> >>> A "ClojureScript workflow" newbie question. >>> >>> People seem to be using a lot lein-cljsbuild to work with their >>> ClojureScript project. >>> >>> From

Re: ClojureScript and development workflow

2012-09-10 Thread Laurent PETIT
2012/9/10 Denis Labaye > > > On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT wrote: > >> Hello, >> >> A "ClojureScript workflow" newbie question. >> >> People seem to be using a lot lein-cljsbuild to work with their >> ClojureScript project. >> >> From what I understand, this means they have a wat

Re: ClojureScript and development workflow

2012-09-10 Thread Denis Labaye
On Mon, Sep 10, 2012 at 6:28 PM, Laurent PETIT wrote: > Hello, > > A "ClojureScript workflow" newbie question. > > People seem to be using a lot lein-cljsbuild to work with their > ClojureScript project. > > From what I understand, this means they have a watcher which recompiles > javascript in th

Re: ClojureScript and development workflow

2012-09-10 Thread Nelson Morris
I've also been using lein-cljsbuild to compile an initial js for page load, and piggieback for interactive dev. I did need to make a fork of nrepl.el that used an :op "load-file" to be able to C-c C-k a buffer and load it in the background. Working on getting that into master. On Mon, Sep 10, 20

Re: ClojureScript and development workflow

2012-09-10 Thread Chas Emerick
I've been using a combination of lein-cljsbuild to keep the on-disk generated code fresh and piggieback[1] for all of my cljs REPL needs. Cheers, - Chas [1] https://github.com/cemerick/piggieback On Sep 10, 2012, at 12:28 PM, Laurent PETIT wrote: > Hello, > > A "ClojureScript workflow" newb

Re: ClojureScript and development workflow

2012-09-10 Thread Robert Marianski
You can use a browser connected repl too: https://github.com/emezeske/lein-cljsbuild/blob/master/doc/REPL.md I've used repl-listen with success. Robert On Mon, Sep 10, 2012 at 06:28:14PM +0200, Laurent PETIT wrote: > Hello, > > A "ClojureScript workflow" newbie question. > > People seem to be