first working browser app

This commit is contained in:
jem 2020-04-24 11:24:09 +02:00
parent 8628a206e8
commit c0431f5bae
6 changed files with 26 additions and 12 deletions

3
.gitignore vendored
View file

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

View file

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

11
public/index.html Normal file
View file

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

View file

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

View file

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

View file

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