@smith.adriane Hmm...that channel seems empty?
bootstrapping is pain and it's not done very often
I have posted odd questions and gotten responses from mike fikes within a few days
@smith.adriane Ah, okay then. I'll ask there. Thanks.
his blog is also a good resource, but you may have to do some digging, https://blog.fikesfarm.com/tags/Bootstrap.html
I would try to help more, but I'm pretty unfamiliar with npm and bundle
and it seems like the issue might be related to using the bundle target
@smith.adriane No worries. I'll dig a bit on his blog then ask.
I do appreciate the help. π
(Or at least the attempt and the resources. π )
Okay, in the meantime, is there anyway to use figwheel-main with 1.10.741?
(It seems to jump from 1.10.339 to 1.10.773)
figwheel-main 0.2.9 being cljs 1.10.339 and figwheel-main 0.2.10 being cljs 1.10.773
I think that that error is supposed to be related to the :target
passed into the opts
parameter: http://cljs.github.io/api/cljs.js/#eval-str
(Although I'm not entirely sure.)
When I try to require both figwheel-main and cljs in my deps.edn
file, the repl never actually appears.
Although the page does load and operate normally.
Seems to work in 758 and to break in 764. Probably commit be792c95
in CLJS.
But given that your code explicitly uses target bundle, I don't think it was supposed to work in the first place.
Possible question for the #beginners channel, but I'm trying to figure out how one would go about executing cljs builds using clojure tools/deps.edn without shadow, lein etc. Something like this (I'm aware of the fact that you can run cljs.main with :main-opts set)
{:paths ["src"]
:deps
{org.clojure/clojurescript {:mvn/version "1.10.758"}}
:aliases
{:build/release
{:exec-fn cljs.build.api/build
:exec-args {:src "src" :opts {:optimizations :advanced} } }}}
I am trying to build a browser based cljs evaluator against which tests assertions could be run. So essentially I want to run tests against the functions that user just typed in the evaluator. For instance:
(cljs.js/eval-str
(cljs.env/default-compiler-env)
"(ns something)
(defn foo [] 9)"
nil
{:eval cljs.js/js-eval}
prn)
(deftest test-something
(is (= 9 (something/foo))))
One obvious problem is that in my test I do not have access to the something
namespace.
So instead I tried populating the initial env with my testβs namespace, so that it has the dynamic code and the static tests together. This works if the test ns is not dependent on anything else. I can call the fns defined in the test ns from the dynamic code.
But not the other way round.
So I tried flipping the problem on itself. I am now using the compile-str
function to evaluate the dynamic code and put it in the compile-state
;; this works. I can see my-state getting updated
(cljs.js/compile-str my-state "(defn bar [] 18)" "foo" {:ns 'foo} prn)
;; this doesn't work and complains about foo not being defined.
(cljs.js/eval-str my-state "(bar)" "foo" {:ns 'foo} prn)
Is there a particular space/channel for re-frame? Or is this the best place to ask re-frame questions?
#re-frame
Almost like I donβt know how to use Slack with the channel search feature π₯Ί
π no worries
Hi, I'm looking for a simple clojurescript tests coverage tool. I found this https://github.com/cloverage/cloverage/ but it does not support clojuresciprt files. Are there any other tools?