Last active
August 29, 2015 14:19
-
-
Save dviramontes/60a43bf73d7a468cd799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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