Skip to content

Commit

Permalink
Get it to boot dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kanwei committed Jul 13, 2018
1 parent b89880b commit 129a945
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build.boot
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
[]
(lein-generate)
(comp
#_(eval '(do (require '[puertorico.server :as server])))
(eval '(do (require '[puertorico.prboot :as prboot])
(prboot/initialize-dev)))
(shadow-dev)
(repl :port 63001
:server true)
Expand All @@ -93,7 +94,7 @@
#_(cljs :optimizations :advanced
:compiler-options {:output-wrapper true})
(sass :output-style :compressed)
(cljs/release :builds #{:puertorico-client})
#_(cljs/release :builds #{:puertorico-client})
(aot)
#_(pom)
(uber)
Expand Down
3 changes: 1 addition & 2 deletions shadow-cljs.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
:source-paths ["src"]
{:source-paths ["src"]
:builds {:puertorico-client {:target :browser
:devtools {:autoload false
:enabled false
Expand Down
7 changes: 7 additions & 0 deletions src/puertorico/prboot.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(ns puertorico.prboot
(:require [boot.core :as bootcore]
[puertorico.server :as server]))

(bootcore/deftask initialize-dev []
(bootcore/with-pass-thru _
(server/-main)))

0 comments on commit 129a945

Please sign in to comment.