-
Notifications
You must be signed in to change notification settings - Fork 21
/
project.clj
107 lines (99 loc) · 4.53 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
(defproject game "0.1.0-SNAPSHOT"
:description "A real time strategy game"
:url "http://github.com/emnh/rts"
:dependencies [[org.clojure/clojure "1.9.0-alpha15"]
[org.clojure/clojurescript "1.9.521"]
[org.clojure/core.async "0.3.442"]
[bidi "2.0.17"]
[com.stuartsierra/component "0.3.2"]
[com.taoensso/encore "2.91.0"]
[com.taoensso/sente "1.11.0"]
[funcool/cats "1.2.1"]
[funcool/promesa "1.1.1"]
[hiccups "0.3.0"]
[jayq/jayq "2.5.4"]
[prismatic/schema "1.1.5"]
[rm-hull/infix "0.2.11"]
[rum "0.8.2"]
[sablono "0.7.0"]
[fipp "0.6.2"]
;[hendekagon/gamma "0.1.3"]
;[org.clojars.emh/gamma "0.0-135-24-ga976"]
[thheller/shadow-devtools "1.0.20170429-17"]]
:plugins
[
[lein-cljsbuild "1.1.6"]
[lein-figwheel "0.5.10"]]
:source-paths
["src"
"src.client"
"src.dev"
"src.dev.client"
"src.scripts"
"src.shared"
"src.worker"
"gamma/src"]
:clean-targets ["out.dev"
"out.dev.client"
"out.prod"
"out.prod.client"]
:cljsbuild {
:builds [{:id "dev"
:source-paths ["src" "src.shared" "src.dev"]
:figwheel true
:compiler {
:output-to "out.dev/game.js"
:output-dir "out.dev"
:target :nodejs
:main game.server.dev
:optimizations :none
:source-map true}}
{:id "dev-client"
:source-paths ["src.client" "src.shared" "src.dev.client" "src.worker"]
:figwheel true
:compiler {
:output-to "out.dev.client/game.js"
:output-dir "out.dev.client"
:optimizations :none
:source-map true
:source-map-timestamp true}}
{:id "scripts"
:source-paths ["src.client" "src.shared" "src.worker" "src.scripts"]
:compiler {
:output-to "out.scripts/game.js"
:output-dir "out.scripts"
:target :nodejs
:optimizations :none}}
{:id "prod"
:source-paths ["src" "src.shared"]
:compiler {
:output-to "out.prod/game.js"
:output-dir "out.prod"
:target :nodejs
; compiling with optimizations takes too much memory
;:optimizations :simple}}]}
:optimizations :none}}
{:id "prod-client"
:source-paths ["src.client" "src.shared" "src.worker"]
:compiler {
:output-to "out.prod.client/game.js"
:output-dir "out.prod.client"
:optimizations :advanced
;:pretty-print true
;:pseudo-names true
:source-map "out.prod.client/game.js.map"
;:verbose true
;:compiler-stats true
:externs [
"externs/three.ext.js"
"externs/jquery.ext.js"
"externs/key-event.ext.js"
"externs/msgpack-js-browser.ext.js"
"externs/pako.ext.js"
"externs/stats.ext.js"
"externs/goog.ext.js"
"externs/simplex.ext.js"
"externs/pixi.ext.js"]}}]}
:figwheel {
:server-port 3450
:css-dirs ["resources/public/css"]}) ;; watch and update CSS