diff --git a/.gitignore b/.gitignore index 422b9f2..5e67719 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ pom.xml.asc .nrepl-port .cpcache/ .shadow-cljs/ -node_modules/ \ No newline at end of file +node_modules/ +/public/js \ No newline at end of file diff --git a/README.md b/README.md index 8e9b249..c7d7812 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,5 @@ sudo npm i -g npx # Development -npx shadow-cljs node-repl \ No newline at end of file +npx shadow-cljs node-repl +npx shadow-cljs watch frontend \ No newline at end of file diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..b8f78af --- /dev/null +++ b/public/index.html @@ -0,0 +1,11 @@ + + + + + masto-embed + + +
+ + + \ No newline at end of file diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 5d85084..d643eb9 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -6,6 +6,8 @@ :dependencies [] - + :dev-http {8080 "public"} :builds - {}} + {:frontend + {:target :browser + :modules {:main {:init-fn dda.masto-embed.app/init}}}}} diff --git a/src/main/core.cljs b/src/main/core.cljs deleted file mode 100644 index aa28e90..0000000 --- a/src/main/core.cljs +++ /dev/null @@ -1,8 +0,0 @@ -(ns core) - - - -(defn mytest - "" - [] - "Hello world!") \ No newline at end of file diff --git a/src/main/dda/masto_embed/app.cljs b/src/main/dda/masto_embed/app.cljs new file mode 100644 index 0000000..31f4b2a --- /dev/null +++ b/src/main/dda/masto_embed/app.cljs @@ -0,0 +1,7 @@ +(ns dda.masto-embed.app) + +(defn init + "" + [] + (println "xx") + "Hello world!") \ No newline at end of file