first working browser app
This commit is contained in:
parent
8628a206e8
commit
c0431f5bae
6 changed files with 26 additions and 12 deletions
3
.gitignore
vendored
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
|
11
public/index.html
Normal file
11
public/index.html
Normal 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>
|
|
@ -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!")
|
7
src/main/dda/masto_embed/app.cljs
Normal file
7
src/main/dda/masto_embed/app.cljs
Normal file
|
@ -0,0 +1,7 @@
|
|||
(ns dda.masto-embed.app)
|
||||
|
||||
(defn init
|
||||
""
|
||||
[]
|
||||
(println "xx")
|
||||
"Hello world!")
|
Loading…
Reference in a new issue