-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.clj
136 lines (117 loc) · 6.26 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
(defproject cljsc2 "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.9.946"]
[fulcrologic/fulcro "2.5.8"]
[org.clojure/core.async "0.3.443"]
[org.clojure/core.logic "0.8.11"]
[expound "0.6.0"]
[org.clojars.ghaskins/protobuf "3.3.1-1"]
[binaryage/chromex "0.5.15"]
[cider/piggieback "0.3.4"]
[aleph "0.4.4"]
[im.chit/lucid.mind "1.3.13"]
[instaparse "1.4.7"]
[org.clojure/test.check "0.10.0-alpha3"]
[hawk "0.2.11"]
[im.chit/hara.string.case "2.5.10"]
[im.chit/hara.zip "2.5.10"]
[me.raynes/conch "0.8.0"]
[com.grammarly/perseverance "0.1.2"]
[com.cognitect/transit-cljs "0.8.243"]
[manifold "0.1.7-alpha5"]
[byte-streams "0.2.4-alpha3"]
[cljsjs/d3 "4.12.0-0"]
[com.taoensso/nippy "2.14.0-alpha1"]
[com.taoensso/sente "1.12.0"]
[environ "1.1.0"]
[datascript "0.16.2"]
[net.mikera/telegenic "0.0.1"]
[stylefruits/gniazdo "1.0.1"]
[thinktopic/think.image "0.4.17-SNAPSHOT"]
[http-kit "2.3.0-alpha4"]
[datascript-transit "0.2.2"]
[byte-transforms "0.1.5-alpha1"]
[ring "1.6.3"]
[ring/ring-defaults "0.3.1"]
[compojure "1.5.1"]
[clojupyter "0.2.1-SNAPSHOT" :exclusions [org.clojure/tools.reader]]
[lambda-ml "0.1.1"]]
:plugins [[lein-figwheel "0.5.16"]
[lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]]
[lein-environ "1.1.0"]
[lein-jupyter "0.1.14"]]
:java-source-paths ["SC2APIProtocol"]
:jvm-opts ["--add-modules" "java.xml.bind"] ;;for java9
:cljsbuild {:builds
[{:id "dev"
:source-paths ["src/cljsc2/cljs"]
:compiler {:main cljsc2.cljs.mount
:asset-path "/static/notebook/js/compiled/out"
:output-to "/usr/local/opt/python/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages/notebook/static/notebook/js/compiled/cljsc2.js"
:output-dir "/usr/local/opt/python/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages/notebook/static/notebook/js/compiled/out"
:source-map-timestamp true
;; To console.log CLJS data-structures make sure you enable devtools in Chrome
;; https://github.com/binaryage/cljs-devtools
:preloads [devtools.preload]}}
;; This next build is a compressed minified build for
;; production. You can build this with:
;; lein cljsbuild once min
{:id "min"
:source-paths ["src/cljsc2/cljs"]
:compiler {:output-to "resources/public/js/compiled/cljsc2.js"
:main cljsc2.cljs.core
:optimizations :advanced
:pretty-print false}}]}
:figwheel {;; :http-server-root "public" ;; default and assumes "resources"
;; :server-port 3449 ;; default
;; :server-ip "127.0.0.1"
:css-dirs ["resources/public/css"] ;; watch and update CSS
;; Start an nREPL server into the running figwheel process
;; :nrepl-port 7888
;; Server Ring Handler (optional)
;; if you want to embed a ring handler into the figwheel http-kit
;; server, this is for simple ring servers, if this
;; doesn't work for you just run your own server :) (see lein-ring)
;; :ring-handler hello_world.server/handler
;; To be able to open files in your editor from the heads up display
;; you will need to put a script on your path.
;; that script will have to take a file path and a line number
;; ie. in ~/bin/myfile-opener
;; #! /bin/sh
;; emacsclient -n +$2 $1
;;
;; :open-file-command "myfile-opener"
;; if you are using emacsclient you can just use
;; :open-file-command "emacsclient"
;; if you want to disable the REPL
;; :repl false
;; to configure a different figwheel logfile path
;; :server-logfile "tmp/logs/figwheel-logfile.log"
;; to pipe all the output to the repl
;; :server-logfile false
}
;; Setting up nREPL for Figwheel and ClojureScript dev
;; Please see:
;; https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
:profiles {:dev {:env {:proto-grammar "resources/proto.ebnf"
:proto-dir "resources/s2clientprotocol/"}
:dependencies [[binaryage/devtools "0.9.4"]
[figwheel-sidecar "0.5.16"]
[org.clojure/tools.nrepl "0.2.13"]]
:plugins [[cider/cider-nrepl "0.17.0"]]
;; need to add dev source path here to get user.clj loaded
:source-paths ["src/cljsc2/cljs"
"dev"]
;; for CIDER
;;:plugins [[cider/cider-nrepl "0.16.0"]]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
;; need to add the compliled assets to the :clean-targets
:clean-targets ^{:protect false} ["/usr/local/opt/python/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages/notebook/static/notebook/js/compiled"
"resources/unpacked/compiled/"
:target-path]}
})