Skip to content

Instantly share code, notes, and snippets.

@dviramontes
Last active August 29, 2015 14:19
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 dviramontes/60a43bf73d7a468cd799 to your computer and use it in GitHub Desktop.
Save dviramontes/60a43bf73d7a468cd799 to your computer and use it in GitHub Desktop.
(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