Skip to content

Instantly share code, notes, and snippets.

@dviramontes
Last active Aug 29, 2015
Embed
What would you like to do?
(set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"resources"}
:dependencies '[[adzerk/boot-cljs "0.0-2814-4" :scope "test"]
[adzerk/boot-cljs-repl "0.1.9" :scope "test"]
[adzerk/boot-reload "0.2.4" :scope "test"]
[pandeiro/boot-http "0.6.1" :scope "test"]
[cljsjs/jquery "1.9.0-0"]
[quil "2.2.5"]]) ;; <--- quil dep
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
'[adzerk.boot-reload :refer [reload]]
'[pandeiro.boot-http :refer [serve]])
(deftask build []
(comp (speak)
(cljs)
))
(deftask run []
(comp (serve)
(watch)
(cljs-repl)
(reload)
(build)))
(deftask production []
(task-options! cljs {:optimizations :advanced
;; pseudo-names true is currently required
;; https://github.com/martinklepsch/pseudo-names-error
;; hopefully fixed soon
:pseudo-names true})
identity)
(deftask development []
(task-options! cljs {:optimizations :none
:unified-mode true
:source-map true}
reload {:on-jsload 'quil-sketch-3.app/init})
identity)
(deftask dev
"Simple alias to run application in development mode"
[]
(comp (development)
(run)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment