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

1
.gitignore vendored
View file

@ -14,3 +14,4 @@ pom.xml.asc
.cpcache/
.shadow-cljs/
node_modules/
/public/js

View file

@ -9,3 +9,4 @@ sudo npm i -g npx
# Development
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!")