-
Notifications
You must be signed in to change notification settings - Fork 1
/
profiles.clj
57 lines (54 loc) · 2.24 KB
/
profiles.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;;; ****************************** NOTES ******************************
;;; Defines four profiles:
;;;
;;; - :shared
;;; - :dev
;;; - :simple
;;; - :advanced
;;;
;;; the :dev, :simple and :advanced profiles are composite profiles,
;;; meaning that they share the content of :shared profile.
;;; *******************************************************************
{:shared {:clean-targets ["out" :target-path]
:test-paths ["test/clj" "test/cljs"]
:resources-paths ["dev-resources"]
:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
:cljsbuild
{:builds {:om-tut
{:source-paths ["test/cljs"]
:compiler
{:output-dir "dev-resources/public/js"
:source-map "dev-resources/public/js/om_tut.js.map"}}}
:test-commands {"phantomjs"
["phantomjs" :runner "dev-resources/public/js/om_tut.js"]}}}
:dev [:shared
{:source-paths ["dev-resources/tools/http" "dev-resources/tools/repl"]
:dependencies [[ring "1.2.1"]
[compojure "1.1.6"]
[enlive "1.1.4"]]
:plugins [[com.cemerick/austin "0.1.3"]]
:cljsbuild
{:builds {:om-tut
{:source-paths ["dev-resources/tools/repl"]
:compiler
{:optimizations :whitespace
:pretty-print true}}}}
:injections [(require '[ring.server :as http :refer [run]]
'cemerick.austin.repls)
(defn browser-repl []
(cemerick.austin.repls/cljs-repl (reset! cemerick.austin.repls/browser-repl-env
(cemerick.austin/repl-env))))]}]
;; simple profile.
:simple [:shared
{:cljsbuild
{:builds {:om-tut
{:compiler {:optimizations :simple
:pretty-print false}}}}}]
;; advanced profile
:advanced [:shared
{:cljsbuild
{:builds {:om-tut
{:source-paths ["test/cljs"]
:compiler
{:optimizations :advanced
:pretty-print false}}}}}]}