This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-02
Channels
- # babashka (68)
- # beginners (22)
- # calva (8)
- # cider (10)
- # cljs-dev (31)
- # clojure (35)
- # clojure-europe (6)
- # clojure-norway (17)
- # clojurescript (5)
- # conjure (10)
- # data-science (8)
- # datascript (10)
- # emacs (3)
- # fulcro (20)
- # humbleui (3)
- # london-clojurians (1)
- # membrane (9)
- # nbb (34)
- # off-topic (16)
- # pathom (15)
- # releases (1)
- # shadow-cljs (15)
- # sql (15)
I’m trying to make a CLI app with node.js with ClojureScript. The Leiningen templates I have tried are all outdated, so I’ve experienced some hiccups coming from the Clojure version being old (therefore leading to some weird errors like failing to macroexpand).
Now I’m trying to use figwheel-new-template
and modify the project.clj
to set the compile target to node. What parts should I tweak and how?
For simplest possible node scripting I recommend looking into https://github.com/babashka/nbb
@U6N4HSMFW Hmm.. even though it's installed on my macbook, didn't know nbb
supported npm-installed packages. I'll look into it. Thanks!
I use shadow cljs in which you can target node js (and import npm packages natively) https://shadow-cljs.github.io/docs/UsersGuide.html#target-node