-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
120 lines (90 loc) · 4.23 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
(defproject obb-rules "3.0.0"
:description "Orion's Belt battle rules"
:url "https://github.com/orionsbelt-battlegrounds/obb-rules"
:license {:name "The MIT License"
:url "file://LICENSE"
:distribution :repo
:comments "Copyright 2011-2014 Pedro Santos All Rights Reserved."}
:dependencies [[org.clojure/test.check "0.9.0"]
[org.clojure/math.numeric-tower "0.0.4"]
[org.clojure/tools.namespace "0.2.11"]
[org.clojure/clojure "1.8.0"]
[org.clojure/tools.nrepl "0.2.12"]
[reagent "0.5.1"]
[secretary "1.2.3"]
[org.clojure/clojurescript "1.8.40"]]
:jvm-opts ["-XX:+TieredCompilation"]
:scm {:name "git"
:url "[email protected]:orionsbelt-battlegrounds/obb-rules.git"}
:profiles {
;;
;; Main profile for the Clojure/JVM
;;
:clj {
:plugins [[com.jakemccrary/lein-test-refresh "0.10.0"]
[lein-cloverage "1.0.2"]]
:main obb-rules.test-runner}
;;
;; Main profile for ClojureScript dev
;;
:cljs-dev {
:plugins [[lein-cljsbuild "1.1.2"]
[lein-figwheel "0.5.2"]]
:figwheel {:css-dirs ["resources/public/css"]}
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
:cljsbuild {
:builds [{:id "dev"
:figwheel {:on-jsload "obb-demo.core/on-js-reload"}
:source-paths ["src"]
:compiler {:main obb-demo.core
:recompile-dependents true
:asset-path "js/compiled/out"
:output-to "resources/public/js/compiled/obb.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true}}]}}
;;
;; Main profile for ClojureScript production
;;
:cljs-prd {
:plugins [[lein-cljsbuild "1.1.2"]]
:cljsbuild {
:builds [{:id "prd"
:source-paths ["src"]
:compiler {:main obb-demo.core
:asset-path "js/compiled/out"
:output-to "resources/public/js/compiled/obb.js"
:output-dir "resources/public/js/compiled/out"
:optimizations :advanced
:source-map-timestamp true}}]}}
;;
;; Main profile for ClojureScript/Browser
;;
:cljs-browser {
:plugins [[lein-cljsbuild "1.1.2"]]
:cljsbuild {
:test-commands {"test" ["./node_modules/phantomjs-prebuilt/bin/phantomjs"
"phantom/test.js"
"test.html"]}
:builds [{:id "test"
:source-paths ["src/obb_rules" "test"]
:compiler {:output-to "build/test/out.js"
:output-dir "build/test/out"
:cache-analysis true
:main obb-rules.test-runner
:optimizations :advanced}}]}}
;;
;; Main profile for ClojureScript/Nodejs
;;
:cljs-node {
:plugins [[lein-cljsbuild "1.1.2"]]
:cljsbuild {
:test-commands {"test" ["node" "build/test/out-node.js"]}
:builds [{:id "test"
:source-paths ["src/obb_rules" "test"]
:compiler {:output-to "build/test/out-node.js"
:output-dir "build/test/out-node"
:main obb-rules.test-runner
:target :nodejs
:language-in :ecmascript5
:language-out :ecmascript5
:optimizations :advanced}}]}}})