This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-07
Channels
- # beginners (95)
- # cider (131)
- # cljdoc (12)
- # cljsjs (2)
- # clojure (209)
- # clojure-dev (1)
- # clojure-italy (3)
- # clojure-nl (10)
- # clojure-russia (37)
- # clojure-spec (19)
- # clojure-uk (182)
- # clojurescript (136)
- # cursive (28)
- # datomic (28)
- # editors (55)
- # figwheel-main (1)
- # fulcro (36)
- # hyperfiddle (12)
- # jobs (1)
- # jobs-discuss (55)
- # luminus (1)
- # mount (1)
- # off-topic (28)
- # onyx (18)
- # reagent (17)
- # ring-swagger (4)
- # rum (14)
- # shadow-cljs (22)
- # spacemacs (15)
- # tools-deps (16)
- # vim (26)
Hey all, is there any good docs/tutorial on using shadow-cljs to write a command line tool?
@joshua.d.horwitz I don't know of one specifically, but you should be able to do this fairly easily by generating a node script build and wrapping it with nexe - Node script build: https://shadow-cljs.github.io/docs/UsersGuide.html#target-node - nexe: https://github.com/nexe/nexe
Thank you @daviwil
hi! How can I require some dependency, for example, cljs.spec.test.alpha
only in :dev
mode? I need this dependency not to be in release bundle.
@y.khmelevskii people generally only require cljs.spec.test.alpha
in test namespaces and not your regular ones
otherwise you can use this https://shadow-cljs.github.io/docs/UsersGuide.html#_conditional_reading
@eoliphant its probably aws-sdk/lib/config
thank you @thheller. But I can’t do something like this:
#?@(:dev [[cljs.spec.test.alpha]])
I need to create a separate build section in shadow-cljs.edn and I need to use .cljc
files, right? Maybe can I use additional external path for :dev and :release mode.is there any way to get verbose compile output? compilation is hanging and i'm having trouble figuring out where the issue is.
let me know if you need help. compilation should never hang. it may just take a while if you use a lot of JS deps.