This commit is contained in:
Michiel Borkent 2025-08-13 11:47:15 +02:00
parent a4a415f6b0
commit dc11b26e60
4 changed files with 26 additions and 4 deletions

View file

@ -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"]

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<script src="js/scittle.js" type="application/javascript"></script>
<script src="js/scittle.cljs-devtools.js" type="application/javascript"></script>
<script type="application/x-scittle">
(js/console.log {:a 1})
</script>
</head>
<body>
</body>
</html>

View file

@ -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}}}}

View file

@ -0,0 +1,4 @@
(ns scittle.cljs-devtools
(:require [devtools.core :as devtools]))
(devtools/install!)