And even more, you can define component systems for every endpoint (reusing
components between them!) using [com.palletops/leaven] (or port to CLJS
[com.stuartsierra/component] or [im.chit/hara.component] by yourself) and start
necessary one on each endpoint. As bonus, if some or all of
You have it pretty much right, this is my project clj for Coils:
https://github.com/zubairq/coils/blob/master/project.clj
:profiles {
:dev
{
:source-paths [src ../srcdev]
:cljsbuild
{
:builds
[
Sorry, seems like I misunderstood. You have several projects in one file, not
several profiles, is that correct?
On Tuesday, September 9, 2014 12:21:05 PM UTC+2, Jonathon McKitrick wrote:
I have about 6 pages with their own cljs code, and I'd also like to have dev,
pre-prod, and prod
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
Maybe this is a stupid question, but why not share a single JS file across
everything + have multiple entry-points? Seems like you'd want to share
_some_ code between the pages anyway.
On Tue, Sep 9, 2014 at 10:03 AM, Jonathon McKitrick jmckitr...@gmail.com
wrote:
Well, it's several
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 not
Well, one cached possibly-larger file vs 6 slightly smaller ones.
On Tue, Sep 9, 2014 at 11:04 AM, Jonathon McKitrick jmckitr...@gmail.com
wrote:
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?
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