This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-12
Channels
- # announcements (65)
- # aws (1)
- # babashka (12)
- # beginners (111)
- # bristol-clojurians (1)
- # cider (32)
- # clj-kondo (55)
- # clojars (3)
- # clojure (71)
- # clojure-europe (17)
- # clojure-france (4)
- # clojure-italy (36)
- # clojure-losangeles (8)
- # clojure-nl (6)
- # clojure-uk (115)
- # clojurescript (2)
- # datomic (99)
- # fulcro (32)
- # graalvm (12)
- # graphql (20)
- # hoplon (203)
- # meander (56)
- # mount (3)
- # off-topic (17)
- # pathom (17)
- # reitit (22)
- # shadow-cljs (32)
- # spacemacs (9)
- # tools-deps (19)
- # vim (25)
- # vscode (3)
migrating a project from lein+figwheel to shadow-cljs+deps. What is a good way to watch & compile less into css with this combo?
@ikitommi what did you use before? I typically just run the node command like tools separately which usually have some kind of built-in for watch. eg. https://github.com/sass/node-sass#command-line-interface
thanks @U05224H0W, the project uses an old cljs-lib, which has less-fragments that need to be included in the project (https://github.com/metosin/komponentit/tree/master/src/less/komponentit), need to copy those into path if would like to use some node-based cli.
https://github.com/Deraen/less4clj#clj integrates into clj cli it seems and sees the classpath of that lib too
are there any guidelines how to package and deploy cljs-libraries that have both cljs code & assets like less/sass-files that could be used from js-based cli’s too?
used he less4clj via lein before, swapping to clj cli removes the need for lein so I guess it’s ok.
I just use a hawk watch to compile
btw I am getting an error when compiling code with 2 modules:
two modules without deps, please specify which one is the default
I just wanted to emit an additional file for a worker
I have to make an empty shared module?
Hm… the main module is added by nubank.workspaces.shadow-cljs.target
which of course doesn’t know about my shared module
I’ll just make the worker depend on main, it’s workspaces, so it’s not a biggie
Hi! I'm porting an existing figwheel-main project to shadow-cljs. Everything works fine when I run shadow-cljs watch app
from the command line. Using Emacs + CIDER with cider-jack-in-cljs, I get
[:app] Configuring build.
[:app] Compiling ...
WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.5.0 (package: ) and n/a, respectively.
You can mute this warning by changing cljr-suppress-middleware-warnings.[:app] Build completed. (179 files, 167 compiled, 0 warnings, 9.06s)
Everything else mostly works. I was expecting CIDER to inject that dep. Reading messages tells me:
[nREPL] Starting server via /home/lvh/.nvm/versions/node/v11.2.0/bin/npx shadow-cljs -d nrepl:0.7.0-beta1 -d cider/piggieback:0.4.2 -d refactor-nrepl:2.5.0 -d cider/cider-nrepl:0.25.0-SNAPSHOT server
... this suggests that refactor-nrepl isn't actually getting loaded. Any ideaas?I can't get hot reload or HUD working when managing dependencies with Lein. Any ideas what could cause this? Seems like shadow.cljs.devtools.client.env
defines are undefined.
Ah closure-library, I already excluded closure-compiler.