From d64822365abfc5fe54d7f9ce5f447f2596cb5c38 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Mon, 30 Dec 2024 12:34:36 +0100 Subject: [PATCH] [fix] Fix shadow-cljs broken build --- project.clj | 6 +++++- shadow-cljs.edn | 15 ++------------- shadow-cljs.sh | 8 ++++++++ 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/project.clj b/project.clj index 43005d2f..868902f2 100644 --- a/project.clj +++ b/project.clj @@ -62,7 +62,11 @@ :dependencies [[org.clojure/test.check "1.1.1"] - [org.clojure/core.async "1.6.681"]] + [org.clojure/core.async "1.6.681"] + [thheller/shadow-cljs "2.28.20"] + [nrepl "1.3.0"] + [cider/cider-nrepl "0.50.3"] + [com.google.javascript/closure-compiler-unshaded "v20240317"]] :plugins [[lein-pprint "1.3.2"] diff --git a/shadow-cljs.edn b/shadow-cljs.edn index b755f4da..d218b91a 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -1,16 +1,5 @@ -{;;:lein true - :source-paths ["src" "test"] - :dependencies - [[org.clojure/tools.reader "1.4.1"] - [com.taoensso/truss "1.11.0"] - [cider/cider-nrepl "0.47.0"] - #_[binaryage/devtools "1.0.7"]] - - :nrepl - {:port 7887 - :middleware - [cider.nrepl/cider-middleware]} - +{:lein true + :nrepl {:port 7887 :middleware [cider.nrepl/cider-middleware]} :dev-http {8090 {:root "public"}} :builds {:main diff --git a/shadow-cljs.sh b/shadow-cljs.sh index 48041d38..5544c57e 100755 --- a/shadow-cljs.sh +++ b/shadow-cljs.sh @@ -1,2 +1,10 @@ #!/bin/bash +lein javac + +echo "Instructions:" +echo " 1. Open printed URLs in browser" +echo " 2. In Emacs: \`cider-connect-cljs\`" +echo " Use printed port, \`shadow\` type, \`main\` build" +echo + npx shadow-cljs watch main