/
project.clj
87 lines (74 loc) · 2.95 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
(defproject web-game-of-life "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:dependencies
[
[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-2173"]
[org.clojure/core.async "0.1.267.0-0d7780-alpha"]
[ring/ring-core "1.2.0"]
[ring/ring-jetty-adapter "1.2.1" :exclusions [joda-time]]
[cheshire "5.3.1"] ; JSON de/encoding https://github.com/dakrone/cheshire
[liberator "0.11.0"]
[compojure "1.1.8"] ; Web routing https://github.com/weavejester/compojure
[liberator "0.11.0"] ; WebMachine (REST state machine) port to Clojure https://github.com/clojure-liberator/liberator
[cljs-http "0.1.2"]
[om "0.5.0"]
]
:uberjar-name "web-game-of-life.jar"
:profiles {
:dev {
:dependencies [
[ring/ring-devel "1.2.1" :exclusions [joda-time]]
[print-foo "0.4.6"] ; Old school print debugging https://github.com/danielribeiro/print-foo
[org.clojure/tools.trace "0.7.6"] ; Tracing macros/fns https://github.com/clojure/tools.trace
[com.cemerick/piggieback "0.1.2"] ; ClojureScript bREPL from the nREPL https://github.com/cemerick/piggieback
[clj-ns-browser "1.3.1"] ; Doc browser https://github.com/franks42/clj-ns-browser
[ring-mock "0.1.5"]
]
:injections [
(require '[clojure.pprint :refer :all]
'[clojure.stacktrace :refer (print-stack-trace)]
'[clojure.test :refer :all]
'[print.foo :refer :all]
'[clj-time.format :as t]
'[clojure.string :as s]
'[cljs.repl.browser :as b-repl]
'[cemerick.piggieback :as pb])
(defn brepl [] (pb/cljs-repl :repl-env (b-repl/repl-env :port 9000)))
]
}
:test {
:dependencies [
[midje "1.6.3"] ; Example-based testing https://github.com/marick/Midje
[ring-mock "0.1.5"]
]
:plugins [
[lein-midje "3.1.3"] ; Example-based testing https://github.com/marick/lein-midje
]
}
}
:aliases {
"midje" ["with-profile" "test" "midje"] ; run unit tests
}
:plugins
[
[lein-cljsbuild "1.0.2"]
[lein-ring "0.8.10"]
[lein-midje "3.1.3"] ; Example-based testing https://github.com/marick/lein-midje
]
:source-paths ["src/clj"]
:cljsbuild {
:builds [{:id "dev"
:source-paths ["src/cljs"]
:compiler {
:output-to "resources/public/js/application.js"
:output-dir "resources/public/js/out"
:optimizations :none
:source-map true
:externs ["om/externs/react.js"]}}]}
:ring {:handler game-of-life.core/app
:init game-of-life.core/init}
:main ^:skip-aot game-of-life.core
:min-lein-version "2.0.0"
)