Questions tagged [shadow-cljs]

shadow-cljs is a tool that facilitates compiling your ClojureScript code for different targets

Resources

90 questions
2
votes
1 answer

How to do ClojureScript editor integration with shadow-cljs and vim-fireplace

If we want to do editor integration with figwheel and vim-fireplace, we need to use piggieback. The document in piggieback is enough to setup it. However, it seems quite difficult to setup shadow-cljs and vim-fireplace because there is no document…
Laurence Chen
  • 1,738
  • 1
  • 13
  • 15
1
vote
0 answers

How to add delays between shadow-cljs auto builds

Context I am using shadow-cljs in the clojurescript (react-native) project. And for triggering UI rerender I am using :before-load-async and :afterload lifecycle hooks. The reagent atom is used as the key for screens and in :afterload event this key…
Monu
  • 877
  • 1
  • 9
  • 27
1
vote
0 answers

How to import npm pacakge from clojurescript?

Something confuse me when trying use clj command line tools to compile and bundle clojurescript with npm modules. My clj command : clj -M --main cljs.main \ --repl-opts "{:launch-browser false}" \ --compile hello.core --repl And my…
kmrk
  • 51
  • 4
1
vote
2 answers

Translating and importing Joy UI dark mode to ClojureScript

I am trying to use Joy UI and its dark mode https://mui.com/joy-ui/customization/dark-mode/ in my cljs project and am stuck with translating the part below to cljs code. import * as React from 'react'; import { CssVarsProvider, extendTheme } from…
Darren Kim
  • 13
  • 2
1
vote
2 answers

Why does updating my nested Reagent component not update it?

I have a triply nested component (in different files) in Reagent + ShadowCLJS. When editing and saving this file, the changes don't show immediately until editing and saving the parent component. For example, NAV is nested in DASHBOARD which itself…
Somé
  • 27
  • 4
1
vote
1 answer

How to avoid duplication of dependency declaration in a Clojure/ClojureScript project?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Currently, dependencies are being declared on project.clj, on shadow-cljs.edn, and on…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
1
vote
1 answer

On a Clojure/Clojurescript project, does it make sense to have dependencies declared on a "shadow-cljs.edn" and a "deps.edn" file?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. In one of the private repositories, there is a deps.edn file with the following…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
1
vote
2 answers

Why is "shadow-cljs compile app" returning "build complete" but the process keeps running without exit?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Usually, I build the project by executing shadow-cljs watch app. It works fine. I can use…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
1
vote
1 answer

How to improve the workflow of editing dependencies and watching the changes on a main Clojure/ClojureScript dynamic web app project?

I have been using Clojure, ClojureScript, lein, shadow-cljs, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. There is the main repository, let's call it principal. And also a supporting repository, let's call it…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
1
vote
0 answers

Shadow cljs doesn’t see java on Macbook M1

I used npx create-cljs-project my-app and revived error when I tried to start with npm start I have tried few java ask version, but I get same error anyway. shadow-cljs - config: /Users/tomaszsikora/dev/my-app/shadow-cljs.edn Execution error…
1
vote
1 answer

Is there a way to store and retrieve the history of shadow-cljs' REPL over different sessions? How to use commands used in previous sessions?

I am using Emacs, CIDER, and shadow-clj/shadow-cljs to develop a project in Clojure/ClojureScript. All this in a macOS Monterey 12.5. Before that, I was used to programming with Emacs, Slime, Common Lisp, and SBCL. Sometimes, I want to have a…
1
vote
1 answer

When to use “shadow-cljs release app” vs “shadow-cljs compile app”?

While building the web app for a new firebase deploy, I have been using: $ shadow-cljs compile app Actually, even clearing stuff and then re-compiling, such as: $ rm -rf .shadow-cljs $ shadow-cljs compile app Apparently, the release command could…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
1
vote
1 answer

How to install and run shadow-cljs in an existing project folder while on macOS?

I am trying to install shadow-cljs in a MacOS Monterey 12.5. I am new to the Apple ecosystem, to npm, and Clojure/ClojureScript stack. This a new world for me. This is the project folder, as you can see there is already a package.json…
1
vote
1 answer

Uncaught TypeError: $jscomp.inherits is not a function

I'm getting this error while trying to build a Clojurescript project with shadow-cljs. The error is happening with the optimization level set to simple. The full output in the browser console looks like this: js.js:74 shadow-cljs - failed to load…
ruhan
  • 35
  • 5
1
vote
0 answers

No cljs test runner with pretty printing?

Is there a cljs test runner that works on emacs and not in the browser that offers good navigation between tests and simplifies information about which tests passed and which failed?l
firealarm
  • 11
  • 2