forked from mtgred/netrunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
119 lines (108 loc) · 4.74 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
(defproject netrunner "1.0"
;; the version string gets replaced by the git rev version plugin anyway
:description "Browser implementation of Android: Netrunner card game."
:url "https://github.com/mtgred/netrunner"
:license {:name "The MIT License (MIT)"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.238"]
[org.clojure/core.async "0.3.443"]
[cheshire "5.6.3"]
[danhut/monger "3.1.0"]
[org.clojure/core.match "0.3.0-alpha4"]
[differ "0.3.3"]
[com.taoensso/sente "1.11.0"]
[ring "1.6.2"]
[ring/ring-json "0.4.0"]
[compojure "1.6.0"]
[hiccup "1.0.5"]
[aero "1.1.3"]
[buddy/buddy-sign "2.2.0"]
[buddy/buddy-auth "1.4.1"]
[crypto-password "0.2.0"]
[binaryage/devtools "0.9.7"]
[digest "1.4.6"]
[http-kit "2.3.0"]
[org.slf4j/slf4j-nop "1.7.12"]
[jwarwick/trello "0.3.3"]
[clj-time "0.14.2"]
[com.draines/postal "2.0.2"]
[throttler "1.0.0"]
[clj-http "3.7.0"]
[reagent "0.8.1"]
[cljsjs/react "16.5.2-0"]
[cljsjs/react-dom "16.5.2-0"]
[org.clojure/tools.analyzer "0.7.0"]
[org.clojure/tools.analyzer.jvm "0.7.2"]
[org.clojars.frozenlock/reagent-modals "0.2.8"]
[hawk "0.2.11"]
[danlentz/clj-uuid "0.1.9"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.16"]
[com.gfredericks/lein-sha-version "0.1.1-p1"]
[lein-ring "0.9.7"]
[lein-eftest "0.5.8"]
[lein-exec "0.3.7"]]
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.16"]
[binaryage/devtools "0.9.7"]
[cider/piggieback "0.3.10"]
[org.clojure/tools.cli "0.4.2"]]
:plugins [[lein-figwheel "0.5.16"]]
:source-paths ["src/clj" "src/cljs" "src/dev" "src/cljc"]}}
:aliases {"fetch" ["run" "-m" "tasks.fetch/command"]
"dumbrepl" ["trampoline" "run" "-m" "clojure.main/main"]
"add-art" ["run" "-m" "tasks.altart/add-art"]
"delete-duplicate-users" ["run" "-m" "tasks.db/delete-duplicate-users"]
"card-coverage" ["run" "-m" "tasks.cards/test-coverage"]}
;; Compilation.
:source-paths ["src/clj" "src/cljs/nr" "src/cljc"]
;; aot only the namespaces needed for the main game in uberjar, notably ignoring the test and (most of the) task namespaces.
:aot [#"game\.*"
#"web\.*"
#"tasks.fetch"
#"tasks.altart"
#"jinteki\.*"]
:jar-name "netrunner.jar"
:uberjar-name "netrunner-standalone.jar"
:omit-source true
:main web.core
;; Misc
:test-paths ["test/clj"]
:eftest {:report eftest.report.pretty/report
:fast-fail? true}
:ring {:handler web.api/app}
:cljsbuild {
:builds [
{:id "dev"
:source-paths ["src/clj/game/core" "src/cljs/nr" "src/cljs/dev" "src/cljc"]
:figwheel true
:compiler {:output-to "resources/public/cljs/app10.js"
:output-dir "resources/public/cljs"
:main "dev.nr"
:asset-path "cljs"
:optimizations :none
:source-map-timestamp true
:npm-deps false
:external-config {:devtools/config {:features-to-install :all}}}}
{:id "prod"
:source-paths ["src/cljs/nr" "src/cljs/prod" "src/cljc"]
:compiler {:output-to "resources/public/js/app10.js"
:output-dir "out"
:optimizations :advanced
:pretty-print false
:npm-deps false
:externs ["src/cljs/externs/extras.js"
"src/cljs/externs/$.js"
"src/cljs/externs/howler.js"
"src/cljs/externs/io.js"
"src/cljs/externs/marked.js"
"src/cljs/externs/moment.js"
"src/cljs/externs/toastr.js"]}}]}
:figwheel {:http-server-root "public"
:server-port 3449
:reload-clj-files false
:css-dirs ["resources/public/css"]}
;; Set timeout to 2 min to allow for full compilation after a clean.
:repl-options {:timeout 180000
:init-ns web.core
:init (do (use 'web.lobby) (-main "dev"))})