This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-27
Channels
- # announcements (13)
- # babashka (59)
- # beginners (58)
- # bitcoin (3)
- # calva (7)
- # cider (2)
- # cljsrn (4)
- # clojure (41)
- # clojure-dev (18)
- # clojure-germany (1)
- # clojurescript (14)
- # conjure (7)
- # cursive (5)
- # datahike (1)
- # graalvm (44)
- # jobs-discuss (3)
- # kaocha (19)
- # lsp (109)
- # luminus (3)
- # off-topic (8)
- # pathom (32)
- # re-frame (4)
- # reveal (3)
- # shadow-cljs (16)
- # spacemacs (5)
- # sql (18)
- # vim (13)
hello what build tool to use for Clojurescript nodejs?i am new i used lein-cljsbuild , i want to pack my clojurescript project as npm(so nodejs code can use it) , and use npm dependancies
I would recommend shadow-cljs: https://shadow-cljs.github.io/docs/UsersGuide.html#target-node-library
I haven't tried it myself but that particular use case seems to be well documented at the very least.
I have a figwheel-main setup for targetting nodejs, but shadow looks like a more serious build tool. Any concrete pros/cons one way or the other?
i am new i cant help really, but i heard that people like shadow-cljs, and by searching online i saw that shadow-cljs is good with npm , but i cant compare tools
People use both. A few years ago I made a switch from figwheel to shadow-cljs back when it had the best support for NPM modules. I've seen people say that nowadays figwheel-main supports NPM modules just as well but I cannot vouch for that in any way.
I’ve not yet got Figwheel set up so that it can crank out a production build rather than an NREPL-equipped dev environment - everything I’ve been doing is essentially live-coded dev. Maybe I’ll look into shadow for addressing that.
Beginner question. Is it possible to set javascript object properties by providing the property name as a string? Not: (set! (.-age person) 81)
, but something like (assoc person "age" 81)
?
I'm aware of https://cljs.info/cheatsheet/, curious if it's possible without pulling in a dependency.