diff --git a/deps.edn b/deps.edn index 96ada15..c943d6d 100644 --- a/deps.edn +++ b/deps.edn @@ -1,7 +1,7 @@ {:paths ["src" "resources"] :deps {org.clojure/clojure {:mvn/version "1.11.1"} - thheller/shadow-cljs {:mvn/version "2.20.15"} + thheller/shadow-cljs {:mvn/version "3.1.8"} org.babashka/sci {:git/url "https://github.com/babashka/sci" :git/sha "87fa2d2648ef809e8c8c87279c51961dca41ed4d"} #_{:local/root "../babashka/sci"} @@ -21,7 +21,8 @@ io.github.babashka/sci.configs #_{:local/root "/Users/borkdude/dev/sci.configs"} {:git/url "https://github.com/babashka/sci.configs" - :git/sha "1ade6f94a2902211bed1f876472571da0c5e7278"}} + :git/sha "1ade6f94a2902211bed1f876472571da0c5e7278"} + binaryage/devtools {:mvn/version "1.0.7"}} :aliases {:dev {:extra-paths ["dev"] diff --git a/resources/public/index_text.html b/resources/public/index_text.html new file mode 100644 index 0000000..c5e58c0 --- /dev/null +++ b/resources/public/index_text.html @@ -0,0 +1,13 @@ + + + + + + + + + + diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 5b5aacc..c542d3f 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -6,7 +6,9 @@ :builds {:main - {:compiler-options {:optimizations :whitespace} + {:compiler-options {:optimizations :simple + :pretty-print true + :pseudo-names true} :target :browser :js-options {:resolve {"react" {:target :global @@ -31,7 +33,9 @@ :depends-on #{:scittle.reagent :scittle}} :scittle.cljs-ajax {:entries [scittle.cljs-ajax] - :depends-on #{:scittle}}} + :depends-on #{:scittle}} + :scittle.cljs-devtools {:entries [scittle.cljs-devtools] + :depends-on #{:scittle}}} :build-hooks [(shadow.cljs.build-report/hook)] :output-dir "resources/public/js" :devtools {:repl-pprint true}}}} diff --git a/src/scittle/cljs_devtools.cljs b/src/scittle/cljs_devtools.cljs new file mode 100644 index 0000000..935da49 --- /dev/null +++ b/src/scittle/cljs_devtools.cljs @@ -0,0 +1,4 @@ +(ns scittle.cljs-devtools + (:require [devtools.core :as devtools])) + +(devtools/install!)