first working browser app

shadow-cljs
jem 4 years ago
parent 8628a206e8
commit c0431f5bae

3
.gitignore vendored

@ -13,4 +13,5 @@ pom.xml.asc
.nrepl-port
.cpcache/
.shadow-cljs/
node_modules/
node_modules/
/public/js

@ -8,4 +8,5 @@ sudo npm i -g npx
# Development
npx shadow-cljs node-repl
npx shadow-cljs node-repl
npx shadow-cljs watch frontend

@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>masto-embed</title>
</head>
<body>
<div id="root"></div>
<script src="js/main.js"></script>
</body>
</html>

@ -6,6 +6,8 @@
:dependencies
[]
:dev-http {8080 "public"}
:builds
{}}
{:frontend
{:target :browser
:modules {:main {:init-fn dda.masto-embed.app/init}}}}}

@ -1,8 +0,0 @@
(ns core)
(defn mytest
""
[]
"Hello world!")

@ -0,0 +1,7 @@
(ns dda.masto-embed.app)
(defn init
""
[]
(println "xx")
"Hello world!")
Loading…
Cancel
Save