-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathproject.clj
70 lines (69 loc) · 4.91 KB
/
project.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
(defproject org.arachne-framework/factui "1.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.9.0-alpha17" :scope "provided"]
[org.clojure/clojurescript "1.9.671" :scope "provided"]
[org.clojure/core.async "0.3.443"]
[com.cerner/clara-rules "0.15.1" :exclusions [prismatic/schema]]
[prismatic/schema "1.1.6"]
[org.clojure/core.match "0.3.0-alpha4"]]
:source-paths ["dev" "src"]
:profiles {:test {:plugins [[lein-shell "0.4.0" :exclusions [org.clojure/clojure]]
[lein-cljsbuild "1.1.6" :exclusions [org.clojure/clojure]]]
:cljsbuild {:builds [{:id "dev-figwheel"
:source-paths ["src" "dev"]
:figwheel {:on-jsload "factui.rum/refresh"}
:compiler {:main factui.ui.dev
:optimizations :none
:asset-path "js/out"
:output-to "target/public/js/dev.js"
:output-dir "target/public/js/out"
:cache-analysis false}}
{:id "dev"
:source-paths ["src" "dev"]
:compiler {:main factui.ui.dev
:optimizations :advanced
;:pretty-print true
;:source-map "target/public/js/dev.map.js"
:asset-path "js/out"
:output-to "target/public/js/dev.js"
:output-dir "target/public/js/dev"
:cache-analysis false}}
{:id "test-whitespace"
:source-paths ["src" "dev" "test"]
:compiler {:main factui.test-runner
:optimizations :whitespace
:output-to "target/test-ws.js"
:output-dir "target/test-ws"
:cache-analysis false}}
{:id "test-advanced"
:source-paths ["src" "dev" "test"]
:compiler {:main factui.test-runner
:externs ["resources/phantomjs-externs.js"]
:optimizations :advanced
:output-to "target/test-adv.js"
:output-dir "target/test-adv"
:cache-analysis false}}
{:id "test-bench"
:source-paths ["src" "dev" "test"]
:compiler {:main factui.bench
:externs ["resources/phantomjs-externs.js"]
:optimizations :advanced
:output-to "target/test-bench.js"
:output-dir "target/test-bench"
:cache-analysis false}}]}
:aliases {"test-clj" ["run" "-m" "factui.test-runner"]
"test-cljs" ["do" ["clean"]
["cljsbuild" "once" "test-advanced"]
["shell" "phantomjs" "target/test-adv.js"]]
"test-all" ["do" ["test-clj"]
["test-cljs"]]
"bench" ["do" ["clean"]
["cljsbuild" "once" "test-bench"]
["shell" "phantomjs" "target/test-bench.js"]]
}}
:dev {:plugins [[lein-figwheel "0.5.12" :exclusions [org.clojure/clojurescript]]]
:dependencies [[figwheel-sidecar "0.5.12"]
[rum "0.10.8"]]
:source-paths ["dev" "test"]
:resource-paths ["target"]
:clean-targets ^{:protect false} ["target" :target-path]
:figwheel {:open-file-command "emacsclient"}}})