This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-10
Channels
- # announcements (2)
- # asami (2)
- # babashka (29)
- # beginners (115)
- # cider (5)
- # clara (9)
- # cljdoc (14)
- # cljs-dev (1)
- # cljsrn (18)
- # clojars (3)
- # clojure (73)
- # clojure-australia (7)
- # clojure-europe (74)
- # clojure-nl (3)
- # clojure-norway (8)
- # clojure-spec (3)
- # clojure-uk (36)
- # clojured (1)
- # clojurescript (15)
- # conjure (18)
- # datomic (6)
- # deps-new (11)
- # depstar (7)
- # fulcro (2)
- # instaparse (1)
- # jobs (9)
- # nrepl (8)
- # off-topic (21)
- # pathom (5)
- # polylith (42)
- # proletarian (1)
- # rdf (10)
- # re-frame (2)
- # react (1)
- # reagent (20)
- # releases (3)
- # remote-jobs (4)
- # rum (9)
- # shadow-cljs (79)
- # sql (11)
- # tools-deps (64)
- # vim (3)
- # xtdb (26)
excuse me. i want to use bootstrap. is there any bootstrap for cljs library i can use? thanks
I have a .json
file in the same directory as my clojurescript file, how do I import that .json
and convert it into a clojure object?
i was initially going to put the JSONs as a gist that I can GET using cljs-ajax (which I think can parse the JSON), but then I thought that it's probably even better if i can just import the JSON in the same source directory
You can, although the macros still needs to return valid clojurescript code. It might be easier to return (js->clj (.parse js/JSON "..."))
But the idea is that you use the jvm to load the file as a string and parse the json in the javascript runtime via interop
if you're using shadow-cljs, you can just use shadow.resource/inline without creating your own slurp and worrying about compilation reload stuff yourself https://clojureverse.org/t/using-none-code-resources-in-cljs-builds/3745
qq: I'd like to use speclj
in a cljs project ... is it possible to just use node
as the test runner, instead of phantomjs
? Is there a better alternative for BDD/TDD style tests in cljs these days, since speclj
saw it's last release in 2016, it seems?