[new] Add basic shadow-cljs setup

This commit is contained in:
Peter Taoussanis 2024-03-25 18:51:24 +01:00
parent dfc52d6f87
commit 41e1f2faeb
4 changed files with 42 additions and 0 deletions

3
.gitignore vendored
View file

@ -14,3 +14,6 @@ pom.xml*
.idea/ .idea/
*.iml *.iml
/wiki/.git /wiki/.git
.shadow-cljs/
public/js/
out/

12
public/index.html Normal file
View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Telemere/shadow-cljs</title>
<script src="/js/main.js"></script>
</head>
<body>
<h1>shadow-cljs dev HTTP server</h1>
<h2>For: <i>taoensso.telemere</i></h2>
</body>
</html>

25
shadow-cljs.edn Normal file
View file

@ -0,0 +1,25 @@
{;;:lein true
:source-paths ["src" "test"]
:dependencies
[[com.taoensso/encore "3.98.0-SNAPSHOT"]
[cider/cider-nrepl "0.47.0"]
[binaryage/devtools "1.0.7"]]
:nrepl
{:port 7887
:middleware
[cider.nrepl/cider-middleware]}
:dev-http {8090 {:root "public"}}
:builds
{:main
{:target :browser
:output-dir "public/js"
:modules {:main {:entries [taoensso.telemere]}}
:preloads [devtools.preload]}
:tests
{:target :node-test
:output-to "target/tests.js"
:ns-regexp "-tests$"
:autorun true}}}

2
shadow-cljs.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
npx shadow-cljs watch main