basic example

This commit is contained in:
Thomas Heller
2017-10-24 10:09:05 +02:00
commit be07d4f56a
7 changed files with 1907 additions and 0 deletions

25
shadow-cljs.edn Normal file
View File

@@ -0,0 +1,25 @@
;; shadow-cljs configuration
{:source-paths
["src"]
:dependencies
[]
:builds
{:app {:target :browser
:output-dir "public/js"
:asset-path "/js"
:modules
{:main ;; <- becomes public/js/main.js
{:entries [starter.browser]}}
:devtools
;; before live-reloading any code call this function
{:before-load starter.browser/stop
;; after live-reloading finishes call this function
:after-load starter.browser/start
;; serve the public directory over http at port 8020
:http-root "public"
:http-port 8020}
}}}