Skip to content

Instantly share code, notes, and snippets.

@zentrope zentrope/build.boot
Created Nov 9, 2014

What would you like to do?
:src-paths #{"src" "src-cljs"}
:rsc-paths #{"resources"}
:dependencies '[[org.clojure/clojure "1.7.0-alpha3"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[compojure "1.2.1"]
[http-kit "2.1.19"]
[org.clojure/data.json "0.2.5"]
[org.clojure/tools.logging "0.3.1"]
[ch.qos.logback/logback-classic "1.1.2"]
[org.clojure/clojurescript "0.0-2371" :scope "provided"]
[om "0.8.0-alpha1" :scope "provided"]
[sablono "0.2.22" :scope "provided"]
[adzerk/boot-cljs "0.0-2371-22" :scope "provided"]
[adzerk/boot-cljs-repl "0.1.5" :scope "provided"]
[adzerk/boot-reload "0.1.3" :scope "provided"]])
'[adzerk.boot-cljs :refer :all]
'[adzerk.boot-cljs-repl :refer :all]
'[adzerk.boot-reload :refer :all])
pom [:project 'mapping-ui
:version "1"]
aot [:all true]
jar [:file "mapping-ui.jar"
:main 'mapping-ui.main]
cljs [:output-to "public/main.js"
:preamble ["react/react.min.js"]
:externs ["react/externs/react.js"]
:optimizations :whitespace
:pretty-print true]
uber [:exclude-scope #{"provided"}])
(deftask dev
"Develop with clojurescript."
(comp ;;(watch)
(deftask uberjar
"Create an uberjar (contains src)."
(comp (cljs)
'[mapping-ui.main :as app])
(deftask run
"Run the app."
(comp (cljs)
(app/run [])))

This comment has been minimized.

Copy link

micha commented Nov 9, 2014

(deftask run
  "Run the app."
    (with-pre-wrap (app/run []))))

Equivalent to:

(deftask run
  "Run the app."
    (fn [continue]
      (fn [event]
        (app/run [])
        (continue event)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.