This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-19
Channels
- # aatree (33)
- # admin-announcements (70)
- # alda (6)
- # aleph (2)
- # announcements (6)
- # aws (7)
- # beginners (40)
- # bitcoin (1)
- # boot (138)
- # cider (24)
- # cljs-dev (9)
- # cljsjs (18)
- # cljsrn (35)
- # clojars (4)
- # clojure (211)
- # clojure-art (4)
- # clojure-austria (2)
- # clojure-hamburg (8)
- # clojure-russia (66)
- # clojure-sg (3)
- # clojured (1)
- # clojurescript (73)
- # cursive (9)
- # datomic (124)
- # dirac (8)
- # editors (3)
- # emacs (13)
- # euroclojure (10)
- # hoplon (207)
- # jobs (4)
- # ldnclj (27)
- # lein-figwheel (3)
- # leiningen (10)
- # mount (5)
- # music (1)
- # off-topic (9)
- # om (92)
- # onyx (36)
- # perun (30)
- # proton (47)
- # re-frame (11)
- # reagent (11)
- # ring-swagger (7)
- # yada (2)
Morn'
Much simpler question than @mccraigmccraig's but how are ppl managing cljsbuild in lein so that figwheel is on for dev but not for prod builds? I tried specifying default build options in :cljsbuild
at top level and then activating figwheel only in dev
profile but this doesn't work because figwheel doesn't honour profile merging. So ended up having to specify :figwheel true
at top level which means it's 'on' all the time. See https://github.com/ldnclj/meetdown/blob/reagent-spike-merge/project.clj
@mccraigmccraig: we solved a similar problem by using one uber-repo and adding the common stuff to sources in each artefact project (e.g. “../model/src”)
@agile_geek I have something like
:cljsbuild
{:builds
{:dev
{:source-paths ["src/cljs"]
:figwheel true
:compiler {:output-to "resources/public/js/app.js"
:output-dir "resources/public/js/out"
:main "meta-insight.core"
:asset-path "/js/out"
:recompile-dependents true}}
:prod
{:source-paths ["src/cljs"]
:compiler {:output-to "resources/public/js/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "/js/compiled/out"
:optimizations :simple
:main "meta-insight.core"}
@benedek: how do you ensure your server serves the asset for dev build for dev profile and prod for prod?
i.e. doesn't your server need to point to /compiled/out
for only prod builds?
I saw that. Does the page from the server just load "resources/public/js/app.js" and that picks up appropriate assets?
I have <script src="/js/app.js"></script>
in my index.html so I guess again it should
Thx @benedek I'll try that. Do you use the new way of connecting to figwheel via nRepl (i.e. lein repl
then (use 'figwheel-sidecar.repl-api)
then (start-figwheel!)
and (cljs-repl)
rather than lein figwheel
)?
BTW more importantly...what is up with Twitter?
I'm desperately trying to push my opinion down the throats of my followers and the systems overloaded.
Yep that's what I'm doing
Has anyone tried DevCards? I like the look of it but I have spent 30 mins trying to get anything to render within an existing app and can't. I get frustrated with the amount of knowledge required to simply get anything working in the cljs world sometimes.
you should try the js world
started using it here, but haven't touched it in many weeks: https://github.com/decomplect/ive
dragon fractals, for example: https://github.com/decomplect/ive/blob/master/src/ive/ergo/lindenmayer.cljs