Skip to content

Instantly share code, notes, and snippets.

@triss
Created February 3, 2015 15:31
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 triss/b6104c6be3df6e132fc0 to your computer and use it in GitHub Desktop.
Save triss/b6104c6be3df6e132fc0 to your computer and use it in GitHub Desktop.
CLJX output not found by Clojue or CLJS.
(set-env!
:source-paths #{"src/cljx" "src/cljs" "src/clj"}
:resource-paths #{"resources"}
:dependencies '[; build dependencies
[adzerk/boot-cljs "0.0-2727-0" :scope "test"]
[adzerk/boot-cljs-repl "0.1.8" :scope "test"]
[adzerk/boot-reload "0.2.4" :scope "test"]
[pandeiro/boot-http "0.6.1" :scope "test"]
[boot-garden "1.2.5-1"]
[deraen/boot-cljx "0.2.1"]
; app dependencies
[garden "1.2.5"]
[rum "0.2.1"]])
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl repl-env]]
'[adzerk.boot-reload :refer [reload]]
'[deraen.boot-cljx :refer [cljx]]
'[pandeiro.boot-http :refer [serve]]
'[boot-garden.core :refer [garden]])
(deftask build []
(comp (speak)
(cljx)
(garden :styles-var 'rum-xox.styles/styles
:output-to "css/garden.css")
(cljs-repl)
(cljs)))
(deftask run []
(comp (serve)
(watch)
(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 'rum-xox.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