Skip to content

Instantly share code, notes, and snippets.

@jaen

jaen/boot.clj Secret

Created September 19, 2015 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaen/6e2192cc7d0bf090f954 to your computer and use it in GitHub Desktop.
Save jaen/6e2192cc7d0bf090f954 to your computer and use it in GitHub Desktop.
(set-env!
:source-paths #{"src"}
:resource-paths #{"resources"}
:exclusions '[org.clojure/clojurescript]
:dependencies '[[org.clojars.jaen/clojurescript "0.0-SNAPSHOT"]
[org.clojars.jaen/reagent "0.5.2-SNAPSHOT"]
[binaryage/devtools "0.3.0"]
[weasel "0.7.0"]
[com.cemerick/austin "0.1.7-SNAPSHOT"]
[com.cemerick/piggieback "0.2.1"]
[org.clojure/clojure "1.7.0"]
[org.clojure/tools.nrepl "0.2.10" :exclusions [org.clojure/clojure]]
[adzerk/boot-cljs "1.7.48-3"]
[adzerk/boot-cljs-repl "0.1.10-SNAPSHOT" :scope "test"]
[adzerk/boot-reload "0.3.1" :scope "test"]
[pandeiro/boot-http "0.6.3-SNAPSHOT" :scope "test"]
[jeluard/boot-notify "0.2.0" :scope "test"]])
(require
'[adzerk.boot-cljs :as cljsb :refer [cljs]]
'[adzerk.boot-reload :as rb]
'[jeluard.boot-notify :refer [notify]]
'[pandeiro.boot-http :refer :all]
'[adzerk.boot-cljs-repl :as cljs-repl])
(deftask dev
"Run a restartable system in the Repl"
[]
;(set-env! :source-paths #(conj % "dev"))
(comp
(serve :dir "target/public":port 8080)
(watch :verbose true)
(rb/reload :on-jsload 'react-with-modular-cljs.core/app-reload!)
(cljs-repl/cljs-repl)
(cljsb/cljs :source-map true
:optimizations :none
:compiler-options {:libs [{:path "node_modules/react"
:name "react"
:files ["react.js" "addons.js" "lib/"]
; :main "react.js"
:module-type :commonjs}]
:main "react-with-modular-cljs.core"
:asset-path "/assets/javascripts/cljs-out"
:output-dir "out"})
(notify)))
(defn cljs-repl! []
(cljs-repl/start-repl))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment